dbTalk Databases Forums  

Semding parameter to DTS Package

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


Discuss Semding parameter to DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Semding parameter to DTS Package - 10-20-2003 , 07:11 AM






How can i send a parameter to DTS packege?
For Example, I want to transfer data from SQL Server to text file, But
the name of text file is variable.and i want to send it's name by
parameter, how can i do that?



Thanks
Elham

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Semding parameter to DTS Package - 10-20-2003 , 07:56 AM






The normal method would be to use a global variable to hold the filename.
Inside the package use the Dynamic Properties task set the filename on the
connection from the global variable value.

Setting the global variable when executing the package will vary depend on
how you want to execute the package, but one of the most common methods is
to use the /A parameter on the DTSRUN command.


--
Darren Green
http://www.sqldts.com



"Elham GH" <ElhamGh_TechMail (AT) yahoo (DOT) com> wrote

Quote:
How can i send a parameter to DTS packege?
For Example, I want to transfer data from SQL Server to text file, But
the name of text file is variable.and i want to send it's name by
parameter, how can i do that?



Thanks
Elham



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.