Viewing post 1 (of 1 total)
you just write as:
create procedure [dbo].[GetDataFromTable]
(
@tablename varchar(50)
)
as
begin
EXEC('Select * from '+@tablename)
end
this will give you whole data of that table which one name you passed in the parameter
By:- Satish Pal
December 8, 2009 at 6:57 am
#1089181