Hi,
You would have to make use of dynamic sql.
Like so:
DECLARE @tablename SYSNAME
SET @tablename = 'MyTable'
EXEC( 'CREATE TABLE ' + @tablename + ' (Id INT NOT NULL PRIMARY KEY, Col1 CHAR(10) )' )
SELECT Id, Col1 FROM MyTable
DROP TABLE MyTable
/rockmoose
You must unlearn what You have learnt