Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert from varchar to Nvarchar SQLServer 2008

I have a table has a coulmn of type varchar I need to convert it to Nvarchar but it shows an error that I have to drop the table and recreate it :) any advice !!

like image 218
John Donvan Avatar asked Dec 10 '22 09:12

John Donvan


1 Answers

Does this not work:

ALTER TABLE my_table ALTER COLUMN my_varchar_column NVARCHAR(32)
like image 116
squawknull Avatar answered Dec 11 '22 23:12

squawknull