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 Procs

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-26 : 10:46:13
Niki writes "Hey,
Can i also put the name of the table into a variable, so when you call the proc, you just give the name of the table ? so, something like this

create ...
@tablename nvarchar
AS
SELECT * FROM @tablename
ORDER BY name

Thanks

Niki"
   

- Advertisement -