By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
ID | InvoiceDate |
---|---|
1 | 2022-07-01 |
2 | 2021-09-14 |
Msg 50001 Level 16 State 16 Line 7
An error was thrown in the trigger 'dbo.YourTrigger_ins' on the table 'dbo.YourTable'. A row where the invoice date is prior to 2022-01-01 cannot be inserted.
1 rows affected
Msg 50002 Level 16 State 16 Line 7
An error was thrown in the trigger 'dbo.YourTrigger_upd' on the table 'dbo.YourTable'. A row where the invoice date is prior to 2022-01-01 cannot be updated.
Msg 50003 Level 16 State 16 Line 11
An error was thrown in the trigger 'dbo.YourTrigger_upd' on the table 'dbo.YourTable'. The value of the invoice date cannot be updated to be prior to 2022-01-01 .
1 rows affected
ID | InvoiceDate |
---|---|
1 | 2022-12-12 |
2 | 2021-09-14 |
4 | 2022-04-12 |