Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Proc from C++ code does not wait for procedure to end 1

Status
Not open for further replies.

PCStorm

MIS
May 29, 2002
31
US
Basically we have some stored procedures being called from C++ code. The procedures gather data and populate tables against which a report will be run. But the C code returns immediately without waiting for the results.

Any ideas? Thanks.
 
How are you connecting to SQL Server, odbc, ole/db ado? It sounds like you have set up an asynchronous connection which will return immediatly. Depending on your access method there is usually away to tell if the proc is still running. Or you may want to set the connection type to synchronous which will not return until the procedure is done.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top