Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Multi-Threaded / Multiple Instances of a SQL Agent Job

$
0
0

I am using SQL Server 2008 SP1.  My application is using a SQL Agent Job, scheduled to run every 1 minute, to trigger a stored procedure.  That stored procedure is responsible for checking a table used as a reporting queue.  if a new report is detect it will trigger a dtexec call through xp_cmdshell to execute an SSIS package.  

In our previous setup we used a Windows Service in a continuous loop to trigger the stored procedure.  The problem is that when the SQL Agent Job triggers an SSIS package it will hold the SQL Agent Job execution until the SSIS package completes.  The Windows Service code loop we could launch multiple SSIS packages at one time.

My question is, how do we get the SQL Agent approach to perform the same as the Windows Service?  A single SQL Agent Job that continues to execute the 1 minute schedule trigger even when a report is triggered by one of the instances.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>