Hi all,
I have a problem with a query on a Datetime field.
pls go thorugh the details.
Table name - HOLIDAYLIST
Fields in table.
1. HolidayName (varchar)
2. HolidayDate (Datetime)
Data in table (only one row is present)
'My Holiday', 04/01/2001:00:00:00:00 (take it as dd-mm-yyyy)
Query
---...
Collin..Thats exactly whatz going worng! When i insert data that violates Ref. Integrity into another table from the trigger, it cancels the execution of the remaining statements. <br>You mean to say that i've to disable all foreign keys in the table to which i'm inserting data and...
Thanx Collin, for the reply. But, unfortunately, the trigger executes only upto the insert statement where the error occurs, whether or not you put the statements in a transaction!!<br>Any other suggestion?
Hello ,<br>I'm using Microsoft sql 7.0.<br>I have a trigger on a table which contains code to insert data into a second table. If this insert fails (for eg. due to a referential integrity violation), it raises an error and the trigger terminates without executing the remaining statements (where...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.