1
I have a legacy database in production with data stored with the type text
but there was a need to convert them to nvarchar(max) and by chance I saw that this was already a recommendation from Microsoft due to the issue of text
be passed over.
The question is whether a direct conversion between type would be a better option, since it is unclear if there is any problem in this process, such as incompatibility differences of encoding or data loss ?
Thank you
could post the code?
– Danizavtz
I’m not DBA, so please don’t be alarmed by my approach, but it would be a direct change from one field type to another, something like :
ALTER TABLE t1 ALTER COLUMN c NVARCHAR (MAX);
– Vinicius Dutra
Does it need to be nvarchar? Can’t it just be varchar? Beware that the type of nvarchar data takes up twice as much space.
– José Diz