SET TEXTSIZE (Transact-SQL)SET TEXTSIZE (Transact-SQL)
Si applica a:Applies to: SQL ServerSQL Server (tutte le versioni supportate)
SQL ServerSQL Server (all supported versions)
database SQL di AzureAzure SQL Database
database SQL di AzureAzure SQL Database
Istanza gestita di SQL di AzureAzure SQL Managed Instance
Istanza gestita di SQL di AzureAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
SQL ServerSQL Server (tutte le versioni supportate)
SQL ServerSQL Server (all supported versions)
database SQL di AzureAzure SQL Database
database SQL di AzureAzure SQL Database
Istanza gestita di SQL di AzureAzure SQL Managed Instance
Istanza gestita di SQL di AzureAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
Specifica la dimensione dei dati, in byte, dei dati varchar(max) , nvarchar(max) , varbinary(max) , text, ntext e image restituiti al client da un'istruzione SELECT.Specifies the size, in bytes, of varchar(max), nvarchar(max), varbinary(max), text, ntext, and image data returned to the client by a SELECT statement.
Importante
I tipi di dati ntext, text e image verranno rimossi in una versione futura di MicrosoftMicrosoftSQL ServerSQL Server.ntext, text, and image data types will be removed in a future version of MicrosoftMicrosoftSQL ServerSQL Server. Evitare di utilizzare questi tipi di dati in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni che attualmente li utilizzano.Avoid using these data types in new development work, and plan to modify applications that currently use them. Usare in alternativa nvarchar(max), varchar(max) e varbinary(max) .Use nvarchar(max), varchar(max), and varbinary(max) instead.
Convenzioni della sintassi Transact-SQL
Transact-SQL Syntax Conventions
SintassiSyntax
SET TEXTSIZE { number }
Nota
Per visualizzare la sintassi Transact-SQL per SQL Server 2014 e versioni precedenti, vedere Documentazione delle versioni precedenti.To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.
ArgomentiArguments
numbernumber
Lunghezza in byte dei dati varchar(max), nvarchar(max), varbinary(max), text, ntext o image.Is the length of varchar(max), nvarchar(max), varbinary(max), text, ntext, or image data, in bytes. number è un intero con un valore massimo di 2147483647 (2 GB).number is an integer with a maximum value of 2147483647 (2 GB). Il valore -1 indica dimensioni illimitate.A value of -1 indicates unlimited size. Il valore 0 reimposta le dimensioni sul valore predefinito (4 KB).A value of 0 resets the size to the default value of 4 KB.
SQL ServerSQL Server Native Client (10.0 e versioni successive) e ODBC Driver per SQL ServerSQL Server specificano automaticamente -1
(illimitate) al momento della connessione.The SQL ServerSQL Server Native Client (10.0 and higher) and ODBC Driver for SQL ServerSQL Server automatically specify -1
(unlimited) when connecting.
Driver di versioni precedenti a SQL ServerSQL Server 2008: Il driver ODBC di SQL ServerSQL Server Native Client e il provider OLE DB SQL ServerSQL Server Native Client (versione 9) per SQL ServerSQL Server impostano automaticamente l'opzione TEXTSIZE su 2147483647 al momento della connessione.Drivers older than SQL ServerSQL Server 2008: The SQL ServerSQL Server Native Client ODBC driver and SQL ServerSQL Server Native Client OLE DB Provider (version 9) for SQL ServerSQL Server automatically set TEXTSIZE to 2147483647 when connecting.
OsservazioniRemarks
L'impostazione dell'opzione SET TEXTSIZE influisce sulla funzione @@TEXTSIZE.Setting SET TEXTSIZE affects the @@TEXTSIZE function.
L'opzione TEXTSIZE viene impostata in fase di esecuzione, non in fase di analisi.The setting of set TEXTSIZE is set at execute or run time and not at parse time.
AutorizzazioniPermissions
È richiesta l'appartenenza al ruolo public .Requires membership in the public role.
Vedere ancheSee Also
@@TEXTSIZE (Transact-SQL) @@TEXTSIZE (Transact-SQL)
Tipi di dati (Transact-SQL) Data Types (Transact-SQL)
Istruzioni SET (Transact-SQL)SET Statements (Transact-SQL)