dbTalk Databases Forums  

stored procedure/global variable/dts

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


Discuss stored procedure/global variable/dts in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Three Toed Sloth
 
Posts: n/a

Default stored procedure/global variable/dts - 09-02-2005 , 01:16 AM






Please bear with me, I am very new to dts.

I have a small package that I execute with the dtsrun command from a stored
procedure. It simply copies the values from a sql table to a text file. So
far so good. I now want to be able to pass the destination path as a variable
to the package. I have spent a lot of time searching a lot of websites
reading a lot of code and am now completely loopy.

I can set up a global variable in the package via the dynamic properties
task and I can set a value here which alters the output destination. I
haven'y been able to do this from outside the package though (which defeats
the purpose of having a global variable. If I have to enter the package to
change the destination I may as well do it on the connection). I've tried the
dtsrun /A switch to no avail.

I have successfully used an activex script in the package which alters the
output destination. I haven'y been able to do this from outside the package
though.

What am I missing?

Marc

Reply With Quote
  #2  
Old   
Tim Heap
 
Posts: n/a

Default Re: stored procedure/global variable/dts - 09-02-2005 , 05:10 AM






Dynamic Properties Task. Store the location into an ini file, use the
dynamic properties to change the value of the connection object (your
text file) to whatever is stored in the ini file. I have used this
dozens of time without failure. I can send you a screen shot if that
helps..

Tim Heap
Software & Database Manager
POSTAR Ltd
www.postar.co.uk
tim (AT) postar (DOT) co.uk

*** Sent via Developersdex http://www.developersdex.com ***

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.