Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accumulating in a local variable
Message
De
31/05/2002 00:12:13
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00662107
Message ID:
00663275
Vues:
14
>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
Fil
Voir

Click here to load this message in the networking platform