Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trigger is locking up record
Message
De
29/04/2004 08:01:13
 
 
À
28/04/2004 18:23:08
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00899034
Message ID:
00899255
Vues:
15
I have been able to duplicate the error. I created a test DB, with two tables. In Table 2 I put a insert trigger that just modifies a value in Table2. In Table1, I put and insert trigger to insert a value into Table2. Both triggers pull from the inserted table.

There was no problem as long as the ID fields in the two tables were the same (they were both blank to start with, and so the IDs started out the same.) As soon as I put an entry into Table2 that was apart from Table1 thier ID filds were no longer in sync, and the next entry into Table1 produced the same error I am getting in my other DB.

How can I handle nested use of the inserted table? I believe that is the problem here.
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform