Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 variable table name within stored procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-10 : 12:16:01
austen writes "I'd like to use the same stored procedure to query different tables. as a result, I'm passing the table name in as a variable. however, the following syntax is apparently invalid:

SELECT * FROM @TableName WHERE ...

please help. thanks. /a."
   

- Advertisement -