Sql*Server does not allow to reference variables in the from clause for table names.
You need to use dynamic sql to execute the query. I have created an example for you.
CREATE PROCEDURE DBO.db_SelectDynamic_rd
(
@p_tablename VARCHAR(32)
)
AS
BEGIN
DECLARE @mem_sql VARCHAR(255)
SET @mem_sql = ""
SET @mem_sql = @mem_sql + " SELECT * "
SET @mem_sql = @mem_sql + " FROM " + @p_tablename
EXEC (@mem_sql)
END
GO
EXEC DBO.db_SelectDynamic_rd 'Employee'