@@TEXTSIZE (Transact-SQL)
SQL Server 2005
Returns the current value of the TEXTSIZE option of the SET statement. This specifies the maximum length, in bytes, of varchar(max), nvarchar(max), varbinary(max), text, or image data that a SELECT statement returns.
Transact-SQL Syntax Conventions
Reference
Configuration Functions (Transact-SQL)SET TEXTSIZE (Transact-SQL)