CREATE PROCEDURE spGetTableName
CREATE PROCEDURE spGetTableName
@TableName nvarchar(50)
AS
BEGIN
DECLARE @SQL nvarchar(4000) SET @SQL=''
SET @SQL =@SQL+ ' SELECT * FROM '+@TableName
EXEC (@SQL)
END
CREATE PROCEDURE spGetTableName
CREATE PROCEDURE spGetTableName
@TableName nvarchar(50)
AS
BEGIN
DECLARE @SQL nvarchar(4000) SET @SQL=''
SET @SQL =@SQL+ ' SELECT * FROM '+@TableName
EXEC (@SQL)
END