Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
>DECLARE @txt VARCHAR(1000)
>DECLARE @txtaux VARCHAR(120)
>
>SET @txt = ''
>SET @txtaux = ''
>
>DECLARE cur_text CURSOR FOR
> SELECT texto FROM Universe.dbo.textOdi
Is texto a text data type. If so, is it possible bigger than 4kb? If so, this will not return data. See the Retrieving ntext, text, or image Values topic in the SQL Books On Line.
"When this method is used in Transact-SQL scripts, stored procedures, and triggers, it works only for relatively short values. If the length of the data is longer than the length specified in SET TEXTSIZE, you must use increase TEXTSIZE or use another method. The current TEXTSIZE setting is reported by the @@TEXTSIZE function and is changed with the SET TEXTSIZE statement:
SET TEXTSIZE 64512
The default setting for TEXTSIZE is 4096 (4 KB). This statement resets TEXTSIZE to its default value:
SET TEXTSIZE 0"
BOb
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement