Wrox Programmer Forums
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2005, 04:50 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default New to DTS

Hi,

  I am migrating my database from oracle 9i to sql server 2000. I am new to this DTS. can anyone tell me what is the difference between Data Driven QueryTask and Transform data task. I want to migrate my tables with all its constraints and identifier. Which one of the 2 is better option.

thanks in advance

 
Old May 17th, 2005, 12:47 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

This information is available on Books Online
Transform Data Task
You use the Transform Data task to copy data between a source and destination and to optionally apply column-level transformations to the data. The Transform Data task is the most basic implementation of the data pump engine in Data Transformation Services (DTS).

The Transform Data task is optimized for insert-based copying and transforming of column-level data between commercial databases, spreadsheets, and text files. You can use the task to copy and transform data between any supported OLE DB connections. Because the task handles such a wide variety of data sources and transformation scenarios, you will frequently use one or more instances of it when creating packages that consolidate data from disparate sources.

Data Driven Query Task
The Data Driven Query task allows you to perform flexible, Transact-SQL based operations on data, including stored procedures and INSERT, UPDATE or DELETE statements. For each row in a source rowset, the Data Driven Query task selects, customizes, and executes one of several SQL statements. You select which statement to execute via a constant return value set in a Microsoft® ActiveX® script transformation. Based on the return constant you use in the script, one of four different parameterized SQL statements that you create may be executed for each source row.

When designing a Data Driven Query task, you need to decide whether the task should include a single query or multiple queries. For example, if you only want the task to delete data, you use a single query (a Delete query). If you want to update some rows and delete others, you need to use two queries (an Update and Delete query). If you use multiple queries, you need to provide scripting code that supplies conditional logic. That logic determines when each query type is applied to the data.



Jaime E. Maccou
 
Old May 18th, 2005, 02:09 PM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I need to export Excel spreadsheet to sql table. Spend tons of time searching for sample code, no luck. Sobmody have a real experience? Please help.

 
Old May 18th, 2005, 04:06 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

On your dts package select the excel spreadsheet Icon, then select your sql server and database connections, Highlight the excel spreadsheet and select the transform data task. Here you have the option of creating the table based on existing database table or creating a table based on the information from the spreadsheet.

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is DTS? galaxy@net SQL Server DTS 4 November 26th, 2007 05:14 AM
New to DTS jasimbo SQL Server DTS 0 October 7th, 2005 06:28 AM
New to DTS jitu SQL Server DTS 3 June 3rd, 2004 01:05 PM
dts calls a lot of dts steffi_ma SQL Server DTS 2 May 24th, 2004 07:18 PM
DTS problem :( meemee SQL Server 2000 1 March 4th, 2004 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.