I have about half a dozen generic, but fairly complex stored procedures and functions that I would like to use in a more generic fashion.
Ideally I\'d like to be abl
ALTER procedure [dbo].[test](@table_name varchar(max)) AS BEGIN declare @tablename varchar(max)=@table_name; declare @statement varchar(max); set @statement = 'Select * from ' + @tablename; execute (@statement); END