Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 1.7 KB

textsize-transact-sql.md

File metadata and controls

64 lines (52 loc) · 1.7 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
@@TEXTSIZE (Transact-SQL)
@@TEXTSIZE (Transact-SQL)
MikeRayMSFT
mikeray
09/18/2017
sql
t-sql
reference
@@TEXTSIZE
@@TEXTSIZE_TSQL
SET statement, TEXTSIZE option
SELECT statement [SQL Server], text size returned
TEXTSIZE option
@@TEXTSIZE function
text size returned [SQL Server]
TSQL

@@TEXTSIZE (Transact-SQL)

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

Returns the current value of the TEXTSIZE option.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: 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'  

[!INCLUDEssResult]

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

See Also

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