MS SQL Server
  Home arrow MS SQL Server arrow Page 6 - Using Data Transformation Services, part 3...
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 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
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 3: Using the DTS Designer Objects (continued)
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 17
    2005-05-18

    Table of Contents:
  • Using Data Transformation Services, part 3: Using the DTS Designer Objects (continued)
  • Creating the package: opening the editor
  • Creating a Destination text file connection
  • Set up an ActiveX Script Task to access the text file
  • The FileSystemObject
  • Create a source text file
  • Create a Transform Data Task
  • Verify the results of transformation
  • Add a workflow item to rectify the package

  • 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 3: Using the DTS Designer Objects (continued) - Create a source text file


    (Page 6 of 9 )

    Create a new TextFile (source).. called FirstCopy by following the same procedure as before. In the property page of this connection, make the following entries. For file name use the ellipsis ... button to locate the Destin.txt created in the previous step. The result after processing Destin.txt will be transferred to Destin2.txt (SecondCopy).

    Create a destination text file

    Again from the menu connection drag and drop a TextFile (Destination). Set its description attribute as SecondCopy. The file name is Destin2.txt, which is created in a convenient location. Now browse using the ellipsis button to locate this file, while configuring its properties as shown below.

    With these added elements, the editor's design pane should have the following elements. The filtered data from SQL Server will be transferred to the Text File. The HelloDTS ActiveX Script Task creates a copy of the TextDts.txt in the computer. The FirstCopy is pointing to the copy. A separate text file, SecondCopy, is created to receive the filtered data from the FirstCopy.

    However, there is just one problem with this arrangement. Both FirstCopy and SecondCopy must exist, even if they are empty, before the Transformation Task from FirstCopy to SecondCopy can take place. However, HelloDTS creates the FirstCopy after execution. So to start with, FirstCopy does not exist. We will resolve this after configuring the mapping from FirstCopy to SecondCopy.

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


     

    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