Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing type from Text to Varchar(max)
Message
De
15/02/2016 11:21:24
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
15/02/2016 09:32:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01631464
Message ID:
01631482
Vues:
64
>>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.
>>Thank you.
>
>
>Hi, I would definitely recommend creating a test version of the tables....then change the data type and verify the results.
>
>I'm not specifically aware of any issues - but I would definitely test the results. Also, if there were any client applications that read the data, I'd make sure they still work (just in the odd event a client application was explicitly looking for a text data type)


What about creating an extra column for the varchar(max) and updating it from the text column? when finished, delete text column.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform