Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trigger is locking up record
Message
From
28/04/2004 14:32:26
 
 
To
28/04/2004 13:12:13
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00899034
Message ID:
00899067
Views:
16
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform