Can I have an input paramater in a stored procedure be a table name?
If so, how do I use the paramater in the 'FOR' clause to set a cursor.
Example:
DECLARE curs CURSOR
FOR SELECT @pTableName WHERE ...
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.