Convert from varchar to Nvarchar SQLServer 2008

I have a varchar type coulmn in my table I need to convert it to Nvarchar, but it shows an error that I have to remove from the table and recreate it :) any advice !!

+4
source share
2 answers

Does this work:

ALTER TABLE my_table ALTER COLUMN my_varchar_column NVARCHAR(32) 
+9
source

There is a setting that prevents SSMS from saving changes that need to be reset and recreated.

You will find the setting in "Tools - Options - Designers".

enter image description here

+5
source

Source: https://habr.com/ru/post/1346850/


All Articles