MS SQL Server
  Home arrow MS SQL Server arrow Using Data Transformation Services, part 6...
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 6: Intro to Text Transfer with Filtering
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 12
    2005-06-20

    Table of Contents:
  • Using Data Transformation Services, part 6: Intro to Text Transfer with Filtering
  • Creating the package
  • Creating a Transform Data Task and a Destination Text File Connection
  • Configuring the Transform Data Task
  • Verification Package Results

  • 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 6: Intro to Text Transfer with Filtering


    (Page 1 of 5 )

    In this tutorial, Jay describes the transformation of data from one comma delimited text file to another. Sometimes applications require transfering information from one text file to another, making a subset of the original with certain constraints. The subset is based on a query of the original text, but there is no built-in support for querying text file connections. It is possible to make this transfer by using an intermediate step, which this article focuses on.

    Desired Transformation:

    The following picture shows the few rows of the original text file called, textTrans.txt.

    You must create a text file populated by rows with a first column containing the value 20. The column ordering must be as shown:

    The steps required to create the destination file

    The original text file is ported to a table in the SQl 2000 Server in the first step. In the second step, the table is queried to furnish data to populate a destination text file after some column transformations. The following steps are needed to accomplish this task.

    • Create a dts package
    • Create a source file connection
    • Create an SQL Connection
    • Create a Transform Data Task
      • This task populates a table in the SQL 2000 Server.
    • Create a destination text file connection
    • Create a Transform Data Task
      • This task creates a query to populate the text file.
    • Verify package results

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · The article was really useful. But I face a different problem. I want to transfer a...
       · You have to be more explicit for em to look at. The objective of the article is to...
     

    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