@@TEXTSIZE (Transact-SQL)

**APPLIES TO:** ![yes](media/yes.png)SQL Server (starting with 2008) ![yes](media/yes.png)Azure SQL Database ![no](media/no.png)Azure SQL Data Warehouse ![no](media/no.png)Parallel Data Warehouse

Returns the current value of the TEXTSIZE option.

Topic link icon Transact-SQL Syntax Conventions

Syntax

@@TEXTSIZE  

Return Types

integer

Examples

The following example uses SELECT to display the @@TEXTSIZE value before and after it is changed with the SET``TEXTSIZE statement.

-- Set the TEXTSIZE option to the default size of 4096 bytes.  
SET TEXTSIZE 0  
SELECT @@TEXTSIZE AS 'Text Size'  
SET TEXTSIZE 2048  
SELECT @@TEXTSIZE AS 'Text Size'  

Here is the result set.

Text Size
-----------
4096
Text Size
-----------
2048

See Also

Configuration Functions (Transact-SQL)
SET TEXTSIZE (Transact-SQL)