--====================== -- Drop Table template --====================== IF EXISTS ( SELECT * FROM sys.tables JOIN sys.schemas ON sys.tables.schema_id = sys.schemas.schema_id WHERE sys.schemas.name = N'' AND sys.tables.name = N'' ) DROP TABLE . GO