MS SQL Server
  Home arrow MS SQL Server arrow Page 5 - Using Data Transformation Services, part 2...
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 2: Using the DTS Designer Objects
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 27
    2005-05-11

    Table of Contents:
  • Using Data Transformation Services, part 2: Using the DTS Designer Objects
  • Creating an SQL Server connection
  • Creating a Task to transfer query result to a table
  • Creating a connection to MS Excel
  • Configuring the Transform Data Task
  • Executing the package and verifying the transfer

  • 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 2: Using the DTS Designer Objects - Configuring the Transform Data Task


    (Page 5 of 6 )

    Place cursor on the Transform Data Task and when it turns into an arrow pointing East<->West, right click the Transform Data Task and select properties. This brings up the following window with several tabs, starting with the Source tab. You may add a description to the Task.

    Since further filtering will be carried out instead of a Table/View choice, the SQL query choice is made. This will require you to build a query. Click on the Build Query... button. This brings up the Data Transformation Services Query Builder Window. The list of tables on the left includes not only the New Table created for the MS Access connection, but also the various system tables. Drag and drop the New Table into the Query Builder design pane. Make the choices. A where clause has been added to the SQL statement, which shows up as a filter in the design pane. Also, note that fewer columns from the MS Access table has been specified by this query.

    Click OK to this query Builder. This adds the SQL statement to the Source window as shown here. You may test Parse query... to verify the correctness of the query.

    Click on the Destination tab, which will opens the window pertinent to the third connection, namely the MS Excel Connection. In the Table Name it comes up with the first worksheet, Sheet1$, and just one field, F1. You may also switch to other sheets, or create a new sheet (sheet is synonymous with table). We assume the default Sheet1$. Now click on the Create... button, which brings up the Create Destination Table window as shown. You can see all the choices you made in the query. If you click OK to this, you will be adding a new work sheet called New Table to your MSA.xls file.

    Click OK to the above window, which now shows the meta data that is going into the Excel file as shown here.

    Click on Transformations, which takes you to the next window with default transformations. This shows a one to one mapping of the source query to the Excel sheet. Click OK to this to complete the task definition. Now go to menu item Package and save. This will be saved under the same name as the previous save, namely, MSA.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · This is a good article about using the DTS Designer to create DTS packages, but it...
       · Everything about DTS is covered by Microsoft, including this one. While this covers...
       · have read your articles regarding DTS, they are very useful, but still i have some...
       · You seem to have two different servers, and looks like you need to write a trigger...
       · Hi Jayaram,I am developer, i am not getting what you exactly saying?Please can...
       · I have read your articles and they are very useful,but still i have some...
       · The options I suggested are just possibilities. Can they work? I need to test them...
       · Hi, I found your DTS lesson very helpful; I looked for a decent tutorial for DTS in...
     

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