Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alter Table using argument?
Message
From
30/11/2005 11:56:31
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Alter Table using argument?
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01073290
Message ID:
01073290
Views:
44
Without including all of the peripheral code, I am trying to do an ALTER TABLE command using an argument in a cursor. ALTER TABLE does not seem to like the argument. Any ideas??

SET @KeyID = @TableName + '_KeyID'
ALTER TABLE @TableName ADD @KeyID INT IDENTITY(1,1) PRIMARY KEY NOT NULL
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Next
Reply
Map
View

Click here to load this message in the networking platform