Database
  Home arrow Database arrow Page 2 - Using Data Transformation Services: Can We...
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? 
DATABASE

Using Data Transformation Services: Can We Transfer XML Data?
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-01-02

    Table of Contents:
  • Using Data Transformation Services: Can We Transfer XML Data?
  • Implementing DTS Transfer of XML
  • DTS Design Details
  • The ActiveX Script
  • ActiveX Script Based Data transfer implementation

  • 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: Can We Transfer XML Data? - Implementing DTS Transfer of XML


    (Page 2 of 5 )

    I will be using the SQL 2000 server, and will be running a simple select query with the forXML clause. This query will be a part of the ExecuteSQL task in the designer. The result of this query, which is but a single column (line, if you want to call it that) will be referenced to a Global Output Variable. I also fashion an ActiveXScript that will read this recordset (referenced by the Global variable)  invoking ADODB and then save the result (persist) to an external XML file on my hard drive. I will also be using a workflow to make sure that the query is executed before the ActiveXScript is run. Please refer to my tutorials on DTS with Global variables. For each of these steps, there will be supporting screen shots. The overall designer view is shown in the next picture.

    Description of Table used

    In order to implement data transfer, I will be using a very simple table in my test bed database TestWiz. This sample has very few elements with no offending characters that you may sometimes find in tables. The next picture shows the table used.

    Query Analyzer Result

    The query that will produce the XML data used in the ExecuteSQL Task is shown in the next picture, together with the result from the Query Analyzer. Notice the first line, which is normally the column name while returning records from a relational table.

    More Database Articles
    More By Jayaram Krishnaswamy


       · Here is another interesting tutorial on DTS as related dealing with XML. There are...
     

    DATABASE ARTICLES

    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)
    - Creating a Database Project in VS 2005
    - Manipulating ADO Recordsets





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway