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
 General SQL Server Forums
 New to SQL Server Programming
 passing table name as parameter

Author  Topic 

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2010-11-20 : 01:38:25
hello everybody,
could anybody provide a slution for me on how to pass a table name as a parameter to a stored proc in sql server.i mean i will be passing just table name for the execition of stored proc along with the procedure name.the output will be it should select all the records from the table which i have passed.
thanx in advance

Sachin.Nand

2937 Posts

Posted - 2010-11-20 : 06:34:06
If you are using SQL 2008 you can do it by using table valued parameter.Google it about this.

PBUH

Go to Top of Page

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2010-11-20 : 06:48:31
ok..thanx for the suggestion
Go to Top of Page
   

- Advertisement -