dbTalk Databases Forums  

Can I pass a parameter to a dts package?

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


Discuss Can I pass a parameter to a dts package? in the microsoft.public.sqlserver.dts forum.



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

Default Can I pass a parameter to a dts package? - 05-16-2004 , 10:39 AM






Here is my task.

I want to know if I can set up a DTS package that when run by the SQL Server
Schedule will use DATE()-1 AKA: GETDATE-1
But when it is run manually, via right clicking on it. Will prompt for a
date to be used.

Any suggestion?

Thank you in advance.
Kent Prokopy



Reply With Quote
  #2  
Old   
The Margolins
 
Posts: n/a

Default Re: Can I pass a parameter to a dts package? - 05-16-2004 , 04:38 PM






Kent,

Set up one more global variable to keep the invocation type. Set the default
value to 'Manual'. When executing on schedule reset variable to 'Schedule'.
Add an ActiveX task to pop up an input box or default whatever carries the
dates to DateAdd("d", -1, Date()) depending on the invocation type.

Ilya

"Kent Prokopy" <kent_prokopy (AT) hotmail (DOT) com> wrote

Quote:
Here is my task.

I want to know if I can set up a DTS package that when run by the SQL
Server
Schedule will use DATE()-1 AKA: GETDATE-1
But when it is run manually, via right clicking on it. Will prompt for a
date to be used.

Any suggestion?

Thank you in advance.
Kent Prokopy





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.