Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 1.98 KB

File metadata and controls

69 lines (56 loc) · 1.98 KB
title @@TEXTSIZE (Transact-SQL)
description @@TEXTSIZE (Transact-SQL)
author MikeRayMSFT
ms.author mikeray
ms.reviewer
ms.date 09/18/2017
ms.prod sql
ms.prod_service database-engine, sql-database
ms.technology t-sql
ms.topic reference
ms.custom
f1_keywords
@@TEXTSIZE
@@TEXTSIZE_TSQL
helpviewer_keywords
SET statement, TEXTSIZE option
SELECT statement [SQL Server], text size returned
TEXTSIZE option
@@TEXTSIZE function
text size returned [SQL Server]
dev_langs
TSQL

@@TEXTSIZE (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

Returns the current value of the TEXTSIZE option.

Topic link icon Transact-SQL Syntax Conventions

Syntax

@@TEXTSIZE  

[!INCLUDEsql-server-tsql-previous-offline-documentation]

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'  

[!INCLUDEssResult]

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

See Also

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