I have a large table with a TEXT
column. I ALTERed the column to VARCHAR(MAX)
using the following statement:
ALTER TABLE MyTable
ALTER COLUMN Details VARCHAR(MAX)
I read that the difference between TEXT
and the new equivalent VARCHAR(MAX)
is that records with less than 8k chars are stored as plain text rather than BLOB internally.
Running the statement above took less than one second so I assume that no reorganizing was done. I wonder if there is any stored procedure or something like that to do so?
As less than 2 percent of the records in my table have more than 8k chars I wonder if I could get a performance boost when selecting the Details column if the SQL Server would change the way it stores the data?!