Don't display dynamic query in result

Posted by Tom Andrews on Stack Overflow See other posts from Stack Overflow or by Tom Andrews
Published on 2010-04-08T15:19:40Z Indexed on 2010/04/08 15:23 UTC
Read the original article Hit count: 301

Filed under:
|
|

Hi all,

Is it possible to hide a dynamic query from the result sets provided from a Stored Procedure?

I am using the @@rowcount of the dynamic query to set a variable that is used to determine whether another query runs or not.

The other query is used by code that I cannot change - hence why I am changing the Stored Procedure. The dynamic query returns as the first result set from the Stored Procedure is now the result of the dynamic query which currently is "breaking" the calling code.

Thanks in advance

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql