dbTalk Databases Forums  

interactive or scheduled ?

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


Discuss interactive or scheduled ? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Antonio Lopez Arredondo
 
Posts: n/a

Default interactive or scheduled ? - 03-02-2004 , 10:07 AM






I would like to know, from an ActiveX script task within a running package,
if the package is running batch (scheduled) or if it was launched by the
user (using the Execute Package at the UI).

is this possible ?

my objective is that this ActiveX script sets default values for the package
when it is run disattended, but if it is run interactively it should ask the
user for that values.

thanks in advance,
ant.





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

Default Re: interactive or scheduled ? - 03-02-2004 , 10:30 AM






You won't know from inside the package as all it knows is that you asked it
to go

Saying that though you may like to add a parameter to the package that you
populate with a given value if run from a job and something else or blank
when run interactively. This way you can then test the value in the package
and use workflow to determine what happens in the package

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Antonio Lopez Arredondo" <adog (AT) someplace (DOT) com> wrote

Quote:
I would like to know, from an ActiveX script task within a running
package,
if the package is running batch (scheduled) or if it was launched by the
user (using the Execute Package at the UI).

is this possible ?

my objective is that this ActiveX script sets default values for the
package
when it is run disattended, but if it is run interactively it should ask
the
user for that values.

thanks in advance,
ant.







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.