Hi
I have a dynamic select statement in a stored procedure, but unless I insert 'print @sql' at the end of the procedure, it will not return a recordset (either in the Query Analyser or to ADO). I cannot understand why 'execute(@sql)' will not do the job on its own.
Here's the procedure...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.