Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing type from Text to Varchar(max)
Message
From
15/02/2016 10:12:18
 
 
To
15/02/2016 10:03:53
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01631464
Message ID:
01631473
Views:
38
>>I have tested on my own test database that when I change a column type from Text to Varchar(max) the content of the column is not lost. But since I am going to do this change on a bunch of customers' databases, is there any chance that the content would be lost?
>>I am changing the type in the SSMS.
>
>I also started to do that. This is required for up to date support and it is not clear for how long this old type will be supported.
>
>It has been recommended for a while to use VarChar(Max). I have used it on new fields for a few years now.
>
>So far, the fields which have been changed have continued to work as expected.


That's been my understanding, that the change to varchar(max) works well. Like I said, the only potential "gotcha" is if some client application actually/explicitly looked for the older data type.

That MAX keyword has saved my life many times. I've had situations where I've had to build very large SQL queries to pass into linked servers for DB2 and Oracle.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform