| title | @@TEXTSIZE (Transact-SQL) | |||||
|---|---|---|---|---|---|---|
| description | @@TEXTSIZE (Transact-SQL) | |||||
| author | MikeRayMSFT | |||||
| ms.author | mikeray | |||||
| ms.date | 09/18/2017 | |||||
| ms.service | sql | |||||
| ms.subservice | t-sql | |||||
| ms.topic | reference | |||||
| ms.custom |
|
|||||
| f1_keywords |
|
|||||
| helpviewer_keywords |
|
|||||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
Returns the current value of the TEXTSIZE option.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
@@TEXTSIZE
integer
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' [!INCLUDEssResult]
Text Size
-----------
4096
Text Size
-----------
2048