| title | @@TEXTSIZE (Transact-SQL) | Microsoft Docs | |||||
|---|---|---|---|---|---|---|
| ms.custom | ||||||
| ms.date | 09/18/2017 | |||||
| ms.prod | sql | |||||
| ms.prod_service | database-engine, sql-database | |||||
| ms.service | ||||||
| ms.component | t-sql|functions | |||||
| ms.reviewer | ||||||
| ms.suite | sql | |||||
| ms.technology |
|
|||||
| ms.tgt_pltfrm | ||||||
| ms.topic | language-reference | |||||
| f1_keywords |
|
|||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | 4308a7b9-8e8f-49e9-8246-8224e32f4953 | |||||
| caps.latest.revision | 29 | |||||
| author | edmacauley | |||||
| ms.author | edmaca | |||||
| manager | craigg | |||||
| ms.workload | Inactive |
[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx-md]
Returns the current value of the TEXTSIZE option.
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
Configuration Functions (Transact-SQL)
SET TEXTSIZE (Transact-SQL)