Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,

I have added insted of trigger for update and insert ,

then using linq to sql using csv whn i try to insert multiple records one by one it doesnt work , howver when i use for single record it works
Posted

1 solution

This sounds like you operate on the first record only in the trigger.

The trigger is fired only once per statement so you may have a situation where several updates are occurring inside the same execution of the trigger.

Because of this you need to use special inserted and deleted tables inside your trigger to investigate and handle all of the modified rows .

For more information refer to Use the inserted and deleted Tables[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900