Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change multiple columns at once
Message
From
10/02/2008 19:46:17
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01291185
Message ID:
01291322
Views:
7
This message has been marked as the solution to the initial question of the thread.
Hi Naomi,

I think you have to put them in separate ALTER TABLE commands. I'm pretty sure that you can't have multiple ALTER COLUMNs in one statement.

~~Bonnie




>>Hi everybody,
>>
>>I'm trying to change nullability of multiple columns at once and can not get the syntax right.
>>
>>Would you help please?
>>
>>alter table Student_Registration ALTER COLUMN sID int NOT NULL ALTER COLUMN TermID int NOT NULL
>>
>>
>>Thanks in advance.
>
>Tried to google and still could not find the correct syntax.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform