MS SQL Server
  Home arrow MS SQL Server arrow Using Data Transformation Services, part 3...
Moblin
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 
Actuate Whitepapers 
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

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    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

    - 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 1 hosted by Hostway