Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why temp table Inserted is not visible outside trigger?
Message
De
11/09/2006 14:21:28
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01152798
Message ID:
01152834
Vues:
32
This message has been marked as a message which has helped to the initial question of the thread.
>>> The error is strange, but what is the structure of MyTable_tmp?
>>It's because MyTable_tmp contains two columns of 'text' type?
>
>Yes, I would guess so. May be you need to list all fields you want to insert explicitly.

From BOL:

SQL Server 2005 does not allow for text, ntext, or image column references in the inserted and deleted tables for AFTER triggers. However, these data types are included for backward compatibility purposes only. The preferred storage for large data is to use the varchar(max), nvarchar(max), and varbinary(max) data types. Both AFTER and INSTEAD OF triggers support varchar(max), nvarchar(max), and varbinary(max) data in the inserted and deleted tables.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform