Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change field
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01311449
Message ID:
01311456
Views:
16
This message has been marked as the solution to the initial question of the thread.
>I need to change a field in a table from NVarChar(40) to NVarChar(100).
>Is this possible to do with ALTER TABLE, or do I have to create a tmp table copy records and then drop the table and then rename the tmp table?

Yes, in general, it can be changed with
ALTER TABLE ... ALTER COLUMN ... NVarChar(100)
See BOL for limtations
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform