--这样呢?CREATE PROCEDURE DynamicTab--(   --多了一个括号
@TableName nvarchar(100)
AS
BEGIN
DECLARE @SQL nvarchar(4000)if exists(select * from sysobjects where name=@TableName and xtype='U')
exec('drop table ' +  @TableName)SELECT @SQL= 'select * into ' + @TableName + ' from AnotherTab where Condition '
EXEC ( @SQL )
END