MS SQL Server
  Home arrow MS SQL Server arrow Page 8 - 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) - Verify the results of transformation


    (Page 8 of 9 )

    Case 1:

    Destin.txt and Destin2.txt both exist and are empty. If the package is executed now, the result is as shown. There is an error in the Data Transformation task.

     One can look at the error message in the Event Viewer:

    Event Type: Information
    Event Source: DataTransformationServices
    Event Category: None
    Event ID: 80
    Date: 05/03/2005
    Time: 4:03:38 PM
    User: N/A
    Computer: XPHTEK
    Description:
    The execution of the following DTS Package succeeded:

    Package Name: FileCreated
    Package Description: DTSScript
    Package ID: {61DC5E41-EB68-4A80-A84C-DDC92C8C8B7A}
    Package Version: {0FE41506-7B8D-4038-A39C-6B9FBA2E21A7}
    Package Execution Lineage: {E57FBB0A-56C8-40E4-90FC-123D101BDD5B}
    Executed On: XPHTEK
    Executed By: computer user
    Execution Started: 05/03/2005 4:03:36 PM
    Execution Completed: 05/03/2005 4:03:38 PM
    Total Execution Time: 2.594 seconds

    Package Steps execution information:


    Step 'DTSStep_DTSDataPumpTask_1' succeeded
    Step Execution Started: 05/03/2005 4:03:36 PM
    Step Execution Completed: 05/03/2005 4:03:36 PM
    Total Step Execution Time: 0.11 seconds
    Progress count in Step: 9

    Step 'DTSStep_DTSActiveScriptTask_1' succeeded
    Step Execution Started: 05/03/2005 4:03:36 PM
    Step Execution Completed: 05/03/2005 4:03:38 PM
    Total Step Execution Time: 2.563 seconds
    Progress count in Step: 0

    Step 'DTSStep_DTSDataPumpTask_2' failed

    Step Error Source: Microsoft Data Transformation Services Flat File Rowset Provider
    Step Error Description:Error creating datafile mapping: The volume for a file has been externally altered so that the opened file is no longer valid.

    Step Error code: 80004005
    Step Error Help File:DTSFFile.hlp
    Step Error Help Context ID:0

    Step Execution Started: 05/03/2005 4:03:36 PM
    Step Execution Completed: 05/03/2005 4:03:36 PM
    Total Step Execution Time: 0.047 seconds
    Progress count in Step: 0

    For more information, see the Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
     

    Case 2:

    Destin.txt does not exist; Destin2.txt exists, but is empty. If the package were to be executed now, you would get the following result. Since the FirstCopy does not exist to start with, the transformation fails.

    However, after execution Destin.txt is created as a copy of TextDts.txt.

    The execution of the following DTS Package succeeded:

    Package Name: FileCreated

    Package Description: DTSScript

    Package ID: {61DC5E41-EB68-4A80-A84C-DDC92C8C8B7A}

    Package Version: {0FE41506-7B8D-4038-A39C-6B9FBA2E21A7}

    Package Execution Lineage: {F5B1F4A7-162E-43B1-933A-29950ACF3953}

    Executed On: XPHTEK

    Executed By: computer user

    Execution Started: 05/03/2005 4:08:58 PM

    Execution Completed: 05/03/2005 4:09:01 PM

    Total Execution Time: 3.36 seconds

    Package Steps execution information:

     

    Step 'DTSStep_DTSDataPumpTask_1' succeeded

    Step Execution Started: 05/03/2005 4:08:58 PM

    Step Execution Completed: 05/03/2005 4:08:58 PM

    Total Step Execution Time: 0.078 seconds

    Progress count in Step: 9

    Step 'DTSStep_DTSActiveScriptTask_1' succeeded

    Step Execution Started: 05/03/2005 4:08:58 PM

    Step Execution Completed: 05/03/2005 4:09:01 PM

    Total Step Execution Time: 3.344 seconds

    Progress count in Step: 0

    Step 'DTSStep_DTSDataPumpTask_2' failed

    Step Error Source: Microsoft Data Transformation Services Flat File Rowset Provider

    Step Error Description:Error opening datafile: The system cannot find the file specified.

    Step Error code: 80004005

    Step Error Help File:DTSFFile.hlp

    Step Error Help Context ID:0

    Step Execution Started: 05/03/2005 4:08:58 PM

    Step Execution Completed: 05/03/2005 4:08:58 PM

    Total Step Execution Time: 0.047 seconds

    Progress count in Step: 0

    For more information, see the Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    In both cases, Destin.txt is created but Destin2.txt remains empty.

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