views:

729

answers:

3

I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter this table?

+6  A: 

Alter table TableName Alter Column ColumnName nvarchar(200)

cmsjr
+2  A: 

Hi,

Use the Alter table statement.

Alter table TableName Alter Column ColumnName varchar(100)
John Sansom
+2  A: 

Don't forget nullability.

ALTER TABLE <schemaName>.<tableName>
ALTER COLUMN <columnName> nvarchar(200) [NULL|NOT NULL]
Rob Garrison