January 5, 2019 at 9:36 pm
Hi.
I have a table A in which datq gets inserred through stored procedure. I also have insert trigger on that table. In the trigger i make the record inset into another table B feom INSERTED. Simple insert statement.
Problem is some records get insertted some dont..kindly help how to trace this issue and solve it
January 6, 2019 at 2:10 am
saum70 - Saturday, January 5, 2019 9:36 PMHi.I have a table A in which datq gets inserred through stored procedure. I also have insert trigger on that table. In the trigger i make the record inset into another table B feom INSERTED. Simple insert statement.
Problem is some records get insertted some dont..kindly help how to trace this issue and solve it
Please post the DDL (create table) scripts, the code for the stored procedure and the code for the trigger.
😎
January 6, 2019 at 4:22 am
I suspect that you have a trigger that assumes that only one row will ever be inserted at a time. Post the DDL, like Eirikur asked for, and we'll very quickly know.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
January 6, 2019 at 1:53 pm
saum70 - Saturday, January 5, 2019 9:36 PMHi.I have a table A in which datq gets inserred through stored procedure. I also have insert trigger on that table. In the trigger i make the record inset into another table B feom INSERTED. Simple insert statement.
Problem is some records get insertted some dont..kindly help how to trace this issue and solve it
Patently, the trigger has been written incorrect. Post the code for the trigger.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply