MS SQL Server
  Home arrow MS SQL Server arrow 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  
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 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 / 19
    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)


    (Page 1 of 9 )

    In this third article covering Data Transformation Services, we discuss the transformation of data from an SQL server to text files. We will add work flow to improve the staging of the conversion. As with the other articles in this series, the process is described in a step-by-step fashion.Introduction

    This tutorial elaborates on the use of the DTS designer for creating packages. The discussion will focus on using the collections, connections tasks, and workflow. The scenario chosen for the previous tutorial on using DTS designer objects  effectively populated an MS Excel worksheet with a filtered subset of data from three of the tables in the example database, Northwind in the SQL 2000 Server.

    In this tutorial, the transformation of data from an SQL Server to text files will be described. The text file so created will be accessed by the ActiveX Script Task to copy the file to a destination file. The destination file becomes the source file for a text file-to-text file conversion scheme with a simple transformation. Adding work flow improves the staging of the conversion. The following steps need to to be taken to accomplish this task:

    • Create a dts package
    • Create an SQL Connection
    • Create a destination text file connection
    • Create a Transform Data Task
        This task creates a query to populate the text file.
    • Configure the task
    • Set up an ActiveX Script task to access the text file
    • Modify the script task to copy the above file to a text file
    • Create a source text file
    • Create a destination text file
    • Create a Transform Data Task
        This task maps the fields from one text file another
    • Verify the results of transformation
    • Add a workflow item to rectify the package
    • Verify again after adding the workflow

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


     

    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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek