If multiple stored procedures are executed when using ADO 2.0, the T-SQL Debugger automatically
starts for the first stored procedure, but does not automatically start
upon executing the second or subsequent stored procedures. The following
error message displays:
The query could not be debugged due to a problem coordinating
events with the server. Check the server and client log to find the
exact cause, fix the problem and try again.
This problem no longer occurs in ADO 2.1 and later when calling simple stored procedures like the pubs..reptq1 procedure that is called in the example code below. However, if you are calling multiple stored procedures that accept parameters, using a single ADO Connection, the T-SQL Debugger does not start automatically when executing the second or subsequent stored procedures. You will either receive the error described above, or it will fail silently.