Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Submitting A Stored Procedure Asynchronously Expand / Collapse
Posted Tuesday, November 2, 2004 11:05 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, May 27, 2015 11:47 PM
Points: 1,040, Visits: 281
Comments posted to this topic are about the content posted at

Gregory A. Larsen, MVP

Need SQL Server Examples check out my website at
Post #144355
Posted Tuesday, June 16, 2009 2:30 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, September 22, 2009 3:39 PM
Points: 6, Visits: 12
The link points to an article that discusses using the BeginExecuteNonQuery command. In my opinion, while this is techincally a means to execute a stored procedure asynchronously, in a practical sense, it is no different than ExecuteNonQuery because you have to hang around and wait until it finishes and then do an EndExecuteNonQuery. This defeats the purpose entirely of launching the stored procedure asynchronously in the first place, which is to launch it and then get out of Dodge.

One of the options of the BeginExecuteNonQuery is to specify a callback procedure. It is unclear to me if the session/connection has to remain active for this to work.

The goal is to connect, launch the store procedure, disconnect and even close the browser/client if desired.

Other options I have read about are to create SQL Server Agent Job. Is the whole damned SQL server put together with duct tape and bailing wire?

Post #736042
Posted Thursday, August 13, 2009 5:25 PM


Group: General Forum Members
Last Login: Monday, December 15, 2014 5:25 PM
Points: 177, Visits: 245
I'm about to head down the Service Broker route. I think it's held together with crazy glue.
Post #770579
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse