Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic table name

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-04 : 00:57:19
Nick writes "I am interested in knowing how (if possible) I can use the "Create Table" in T-SQL and pass a VARIABLE name in order to create a tablename according to that variable.
ex:
DECLARE @myTable varchar(50)
CREATE TABLE @myTable (
...
...
)

I am using SQL server 2000.
I would appreciate any kind of help.

Thank you.

Nick."
   

- Advertisement -