dbTalk Databases Forums  

How can I extract the sql statement from DTS?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How can I extract the sql statement from DTS? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter
 
Posts: n/a

Default How can I extract the sql statement from DTS? - 05-25-2006 , 12:48 PM






I want to use DTS Wizard to map columns between a source table and a
destination table and then extract the sql statement created. For example, I
want the insert sql statement from table Source to table Destination which I
use DTS wizrad which columns from Source should insert into which columns of
Destination.

Thanks.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: How can I extract the sql statement from DTS? - 05-25-2006 , 02:43 PM






Hello Peter,

Ok So the SourceSQLStatement property of a Transform Data task will hold
the select method used. It may however hold only an object name in which
case the statement will be

SELECT <ALL COLUMNS> FROM <OBJECT>

If you choose to type the statement you want to use then it will return that.

Does this answer what you want?




Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
I want to use DTS Wizard to map columns between a source table and a
destination table and then extract the sql statement created. For
example, I want the insert sql statement from table Source to table
Destination which I use DTS wizrad which columns from Source should
insert into which columns of Destination.

Thanks.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.