For SQL Server 2016 upgrade – compatibility level to 130 – replace deprecated data types ntext, text, and image with nvarchar(max), varchar(max), and varbinary(max) respectively

For SQL Server 2016 upgrade – compatibility level to 130 – replace deprecated data types ntext, text, and image with nvarchar(max), varchar(max), and varbinary(max) respectively.

Table ABC has 3 columns ColImage, ColNText, ColText.

They will have to be changed:

Alter table ABC alter column ColImage varbinary(max)

Alter table ABC alter column ColNText nvarchar(max)

Alter table ABC alter column ColText varchar(max)

MSDN Reference

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s