| description | @@TEXTSIZE (Transact-SQL) | |||||
|---|---|---|---|---|---|---|
| title | @@TEXTSIZE (Transact-SQL) | Microsoft Docs | |||||
| ms.custom | ||||||
| ms.date | 09/18/2017 | |||||
| ms.prod | sql | |||||
| ms.prod_service | database-engine, sql-database | |||||
| ms.reviewer | ||||||
| ms.technology | t-sql | |||||
| ms.topic | reference | |||||
| f1_keywords |
|
|||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | 4308a7b9-8e8f-49e9-8246-8224e32f4953 | |||||
| author | julieMSFT | |||||
| ms.author | jrasnick |
[!INCLUDE SQL Server SQL Database]
Returns the current value of the TEXTSIZE option.
Transact-SQL Syntax Conventions
@@TEXTSIZE
[!INCLUDEsql-server-tsql-previous-offline-documentation]
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
Configuration Functions (Transact-SQL)
SET TEXTSIZE (Transact-SQL)