MS SQL Server
  Home arrow MS SQL Server arrow Page 3 - 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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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 / 14
    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 - Create a File DSN for SQL Anywhere


    (Page 3 of 5 )

    In this section we shall make a file datasource for the SQL Anywhere database that can be used for moving the tables in and out using DTS.

    The Start -> All Programs->Control Panel->Administrative Tools->Data Sources (ODBC) trail will open up the ODBC Data Source Administrator window (this is in windows XP Professional). Clicking the File Data Source tab will open up the window of file data sources. If you can identify a window which you had configured earlier, you may be able to pick up that data source. For creating a new datasource as in this tutorial, click on the Add... button. This will open up the next window shown. The Adaptive Server Anywhere 9.0 driver is first in the list. We will use this driver that came with the SQL Anywhere 9.0 download. Click Next.

    In the Create  New Datasource Window type a name for your database; here it is called SqlAny. Click on Next> which will bring you to the summary of actions you have taken so far. This  successfully  creates a File Data Source in the location, C:\Program Files\Common Files\ODBC\Data Sources\SqlAny.dsn.

    Clicking on the button Finish will bring up the next screen, where you enter the same credentials you used earlier.

    Click on the ODBC tab. You will see the following screen, where you will not be configuring anything. 

    Click on the Database tab. You will enter essentially the same information you entered for Sybase Central earlier in this tutorial.

    You may click on the Browse...button which opens up the following screen. This is the directory where the asademo.db database was installed initially.

    If you highlight asademo.db and click Open, you fill up the Database file: text box. Copy and paste the same to the Start Line: text box. Accept other defaults.  Do not worry about the other two tabs for the present task. Click OK to screen one above. You come back to the ODBC data Source Administrator's screen, but you will see the dsn you created in the listing as shown by the highlighted item. This completes your task to create a file DSN for the SQL Anywhere database.

    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

    - Windows Server 2008 as a Workstation OS
    - An Overview of Windows Server 2008 R2
    - LINQ to MySQL, Oracle and PostgreSQL Provide...
    - 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





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek