MS SQL Server
  Home arrow MS SQL Server arrow Page 2 - Using Data Transformation Services - Part ...
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 Data Transformation Services - Part 1
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 37
    2005-05-04

    Table of Contents:
  • Using Data Transformation Services - Part 1
  • Import Export Wizard
  • The DTS Designer
  • Package creation details
  • Executing the package/step

  • 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 Data Transformation Services - Part 1 - Import Export Wizard


    (Page 2 of 5 )

    If the SQL 2000 Server node is expanded in the SQL 2000 Server Enterprise Manager, the DTS is one of the main nodes, as shown in this picture:

    We will consider exporting a table from the "pubs" database to an MS Access database called From Access in the file system of the machine, which also hosts the SQL 2000 Server.

    Click the pop-up menu item Export Data ... which brings up the Import Export Wizard as shown in the next picture. This is a completely Wizard supervised transfer of data.

    Clicking Next brings up the following window, where you need to supply information about where the data is coming from (Source). In this case, it's an export of data, and therefore the data is coming from the Local SQL server. You also need to supply authentication information, which in this case is "Windows Integrated Authentication." This example considers transferring a single table from the pubs database, and therefore the database that should be chosen is pubs. These choices are shown in the following window.

    If the data has changed since the beginning of the transfer process, the database can be refreshed. Clicking Next will take you to the next window, where you need to enter information for the destination database. The configurable items are Microsoft Access (the Jet Provider), the file name of the MS Access database (a file by name should exist; create an empty Access file with the chosen name, in this case FromAccess in default directory), and authentication information (in the case of database created by the administrator, this could be blank) as shown in the the next picture:

    Clicking on Next in this window takes you to the next window, where the possibility of copying table|tables|view|Views or results of a query can be chosen. Since a single table will be exported to MS Access, the default radio button choice is appropriate.

    Clicking on Next takes you to the window where you can choose what you want to transfer, as shown. In this example, the employee table will be transferred, so a check mark is placed as shown. Clicking on preview shows the data from the chosen object, and clicking on the ... under Transform will bring up the Column Mappings and Transformations. The mappings and transformations will be discussed in a future tutorial. For the present, the defaults are accepted.

    Clicking on Next will bring up a window where you need to say when? you want to run (execute) this package, or if you are saving, where? you want to save the DTS Package. You may also run and save at the same time. If you choose to save, it can be saved in different places in different forms as shown. In the present case, the package will be saved to the SQL Server and also will be executed. You may also schedule when to run the package by clicking and configuring the ensuing wizard dialog.

    Clicking Next takes you to this window, where you provide a name and a description to the package as shown here.

    Clicking Next completes the configuring of the DTS. This screen also shows the summary of all the interactive actions taken so far:

    Source: Microsoft SQL Server
    Using Microsoft OLE DB Provider for SQL Server
    Location: (local)
    Database: pubs
    Destination: Microsoft Access
    Using Microsoft Jet 4.0 OLE DB Provider
    Location: c:\documents and settings\computer user\
    my documents\fromaccess.mdb
    Tables
    [pubs].[dbo].[employee] -> employee
    Save package in SQL Server as: SqlToAccess in (local)
    

    When you click Finish, the window closes to open the progress window, where you can monitor the progress of the transfer. If some information is not transferred you may get messages as to which of the steps failed in the transfer. Since you also want the package saved, you get a step for this process as well.

    You may verify that the FromAccess database now contains the employee table from the pubs database as shown here.

    Since a package was also saved, the package can be viewed in the place where it was saved, namely, the DTS in the SQL Server as shown here. In the title bar you can see the package name we gave. The two connections are the source and destination, and the connecting arrows are the tasks. These will be discussed in more detail later.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · Great article!One wonders if there is any way to transform data from a SQL Server...
       · If there is no SQL Server, then where is the SQL Server database? Is it perhaps in a...
     

    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 4 hosted by Hostway
    Stay green...Green IT