I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter this table?
+2
A:
Hi,
Use the Alter table statement.
Alter table TableName Alter Column ColumnName varchar(100)
John Sansom
2009-03-09 16:08:01
+2
A:
Don't forget nullability.
ALTER TABLE <schemaName>.<tableName>
ALTER COLUMN <columnName> nvarchar(200) [NULL|NOT NULL]
Rob Garrison
2009-03-11 16:38:07