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)
 Stored Procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-09 : 13:39:58
Mayur writes "I am trying to create a generic retrieval procedure for any table my database.

Similar to the following.

Create Procedure get_all (@tbl_name varchar(10)) as

Select * from @tbl_name;

'''''''''''''''''
but the error I get is "Must declare the variable '@tbl_name'"

Any help will be greatly appreciated.

Thank You,

Mayur"
   

- Advertisement -