Skip to content

Latest commit

 

History

History
75 lines (63 loc) · 2.04 KB

File metadata and controls

75 lines (63 loc) · 2.04 KB
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
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
@@TEXTSIZE
@@TEXTSIZE_TSQL
dev_langs
TSQL
helpviewer_keywords
SET statement, TEXTSIZE option
SELECT statement [SQL Server], text size returned
TEXTSIZE option
@@TEXTSIZE function
text size returned [SQL Server]
ms.assetid 4308a7b9-8e8f-49e9-8246-8224e32f4953
caps.latest.revision 29
author edmacauley
ms.author edmaca
manager craigg
ms.workload Inactive

@@TEXTSIZE (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-asdb-xxxx-xxx-md]

Returns the current value of the TEXTSIZE option.

Topic link icon 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)