SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


check for running packages


check for running packages

Author
Message
aaron.reese
aaron.reese
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1035 Visits: 902
Hi guys, this a two-pronged question.

I have an SSIS package that needs to run 24/7 as it uses Kosans File Watcher to listen for new files into a directory. When the files are processed the package returns to wait mode. The file location is specified in a config file and differs between dev, test and production. Our packages are deployed using file location and xml config file rather than database storage and/or environment variables.

Data services have set this up as an on-demand (i.e. non scheduled) SQL Agent job to call the package.

HOWEVER...

They have not set the agent job with the /CONFIGFILE switch to change the config file location BUT... the files are being correctly processed.

So... I think there is another copy of the package already running which was started from dtsexecutil or a command line WITH the /CONFIGFILE . One instance is running but not finding anything because it is looking at the wrong directory and the other one is running outside the control environment and is doing all the work.

I know that if the package is started from SQL agent or from xp_cmdshell you can see it in dtslog90 but does anyone know how to detect it if started from outside the SQL environment.

Ultimately I want to do 2 things:

1) the SQL server agent job should check for any running instance of the package and only start it if it is not started
2) the SQL server agent job should relinquish control of the package (i.e. the job ends). In other words the Agent is responsible for starting the package rather than running the package.

If anyone can help I would be very grateful

Obiron
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search