Change nchar to nvarchar

Hi,

Within Management Studio -> Edit table, is it safe to change nchar(2000) to nvarchar(2000) without losing data?

Thanks,

Rich
LVL 1
rito1Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
yes, it is safe.
normally, you do an UPDATE of the table (all rows) to trim away the trailing spaces from the nchar, though, because the change of the data type will not do that implicitly.
0
 
rito1Author Commented:
Excellent, thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.