Home > SQL Server > Set TextSize and @@TextSize – SQL Server

Set TextSize and @@TextSize – SQL Server

@@TEXTSIZE : This function returns the current value of the TextSize option. It returns an integer value.

SET TEXTSIZE : This option is to specifies the size of data to be returned by a SELECT statement. This setting only applies to these data types varchar(max), nvarchar(max), varbinary(max), text, ntext, and image. Some of these data types such as ntext , text, and image will be removed in the future version of SQL Server.


1. Get value of the @@TextSize

pic12. Setting TextSize option in SQL Server

We can set the size value from 0 to 2 GB in bytes integer value. 0 means 4 KB.


  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: