Effect of set nocount on return status
Hi all,
I had a perfectly fine working stored procedure. In order to increase it's performance I put set nocount on in it. After that I started to encounter an error message.
"p_ABC stored procedure attempted to return a status of null, which is not allowed, a status of 0 will be returned instead."
p_ABC stored procedure is being called inside main stored procedure in which I have put set nocount on statement. By the way if I remove
set nocount on, everything starts to work fine again.
My question is "Is this predicatable behaviour of set nocount on statement and is documented already?". Reply to this question would really help me to remove my confusion over the issue.
Thanks in advance,
Puneet Mittal
Puneet
|