Using variable inplace of table in select statment in sql server 2005

  • Not that I know of. Only variables can be dynamic is a regular SQL query. If you want dynamic object names, you must wrap the statement with EXEC or sp_executesql

Viewing post 1 (of 2 total)

You must be logged in to reply to this topic. Login to reply