dbTalk Databases Forums  

Dts Variables (Newbie question)

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


Discuss Dts Variables (Newbie question) in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stan Sainte-Rose
 
Posts: n/a

Default Dts Variables (Newbie question) - 12-21-2003 , 05:02 AM






Hi,
How to pass variables into a dts and run the dts from a stored procedure ?
I want to pass 2 variables to a DTS,
one is a CodeID and the other is a filePath
And of course, I want to change the current filepath with the new that I
send.

Thanks for your precious help

Stan



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

Default Re: Dts Variables (Newbie question) - 12-22-2003 , 01:55 AM






If you are using 2000 then a combination of Global Variables and the /A
switch to DTSRUN will sort you out.
If you want to use the sp_OA* family of stored procs then you get into the
object model and set them through that

Execute a package from T-SQL
(http://www.sqldts.com/default.aspx?210)

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Stan Sainte-Rose" <stan (AT) cyber972 (DOT) com> wrote

Quote:
Hi,
How to pass variables into a dts and run the dts from a stored procedure ?
I want to pass 2 variables to a DTS,
one is a CodeID and the other is a filePath
And of course, I want to change the current filepath with the new that I
send.

Thanks for your precious help

Stan





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.