-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding request events #342
Comments
You can add "set nocount on" before calling the procedure, or inside the I meant to add a method of overriding Connection::getInitialSql() for one On Thu, 19 Nov 2015 03:07 Jeremy Mason [email protected] wrote:
|
@lee-houghton Awesome! I was hoping it was just a simple change, and not something that would cause me to re-think my whole approach. (I hate when that happens...) :) I won't be able to try it out tonight, but I'll try to report back shortly so we can close this issue. Thanks! |
It works great, thanks! |
This might just be a training issue on my part, I'm just trying to figure out how to properly interpret the events being raised when I call the stored procedure...
I have a decently complex stored procedure, it creates and populates a TABLE variable, via a few CTEs and a final select, then returns 2 result sets, and an output parameter. Pretty much the full spectrum, right? :)
So, here's my dilemma... when I log the events being raised on the call, here's what I see:
::tedious:: [doneInProc]
::tedious:: [doneInProc]
::tedious:: [doneInProc]
::tedious:: [doneInProc]
::tedious:: [doneInProc]
::tedious:: [doneInProc]
::tedious:: [returnValue]
::tedious:: [doneProc]
It appears that I'm receiving 'doneInProc' for each SELECT that gets executed, including the statements that I'm using to populate CTEs and table variables. My intention was to use the 'doneInProc' events to keep track of which result set I'm iterating on, so how do I determine which statements represent my result sets, so I can ignore the others?
Thanks!
The text was updated successfully, but these errors were encountered: