MS SQL Server
  Home arrow MS SQL Server arrow Page 4 - Using DTS: Import From/Export To a Non-Mic...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Using DTS: Import From/Export To a Non-Microsoft Database
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2005-11-02

    Table of Contents:
  • Using DTS: Import From/Export To a Non-Microsoft Database
  • Initial preparation before calling DTS
  • Create a File DSN for SQL Anywhere
  • Export a table from MS SQL to SQL Anywhere
  • Import a table from SQL Anywhere to MS SQL

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using DTS: Import From/Export To a Non-Microsoft Database - Export a table from MS SQL to SQL Anywhere


    (Page 4 of 5 )

    We have seen in an earlier tutorial how to invoke the Import/Export wizard. You could start this wizard from the shortcut on Start ->All Programs->MS SQL Server-> Import Export Data. This will actually start the C:\Program Files\Microsoft SQL Server\80\Tools\Binn\dtwiz.exe program. It could be started from the command line as well. This starts an instance of the Import/Export wizard as shown in the following image:

    Click Next to pick the source of data. Since we will be exporting from the local SQL Server, we choose the pubs database on the local server as shown in the next screen shot.

    Click Next> to open the next screen, where we pick a destination. We choose from the drop-down the Sybase Adaptive Server anywhere Provider 9.0. We may need to connect to the SQL Anywhere server (assuming it is still running). Click on the Properties...button.

    This opens up the next screen where you enter the credentials one more time. The only information needed is as shown in this screen. You may test to verify that you succeeded in the connection.

    Close the message box by clicking OK and then click Next>. This will get you to the following screen  showing that you are ready to move the table from MS SQL to SQL Anywhere.

    When you click Next> to the above screen you will open the next screen where you pick the table to move. We will be moving the [pubs].[dbo].[publishers]  table to the SQL Anywhere.

    Place a check mark against this. If you want you may see the data by hitting the Preview button. Now click Next>. You will see the following screen.

    This is essentially as the screen succinctly puts it, the Save, Schedule, and replicate package screen. We will discuss elsewhere some of these options. For now, place a check mark against the Save DTS Package option at the default SQL Server and click Next>. This brings up the screen where you need to save the package with a name. Here it is saved to Export ToSqlAny.

    Click Next> to open the next screen. This completes the wizard's main tasks in exporting the table.

    Click finish. This starts the export as seen in the next screen. The publishers table can now be found in the Sybase's asademo.db database.

    Now we open up the Sybase Central Administrative interface and refresh all objects. We see the publishers table in the asademo.db database showing that the process was successful.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · Come read the article and comment! The method is quite generic. You can...
       · Hi, You say that DTS can be used independantly of MS SQL Server but how would you...
       · Hi skippy:Try this free download of MSDE [Download Microsoft SQL Server 2000...
       · How do we cary over the primary keys when porting data from sybase to sql...
       · I am just returning from a vacation, and I will try to show it through a demo...
     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT