Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trigger is locking up record
Message
De
28/04/2004 14:32:26
 
 
À
28/04/2004 13:12:13
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00899034
Message ID:
00899067
Vues:
15
I have since put several test statments in the trigger:

Set @Indicator = (Select DependantID From Dependants Where PersonnelID = @PersonnelID)
insert into TestTable(TestColumn) values (@Indicator)

This insert is successful ever time, in every place, including at the end of the trigger. This would suggest that the DependantID is there. So why am I getting nothing at the table, and why would I get the error 'Cannot delete rows with unknown keys' when I try to delete the row without refeshing the table? (i.e. If I 'run' the table, the ID shows up fine.)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform