question

vaiydeyanathanvs avatar image
vaiydeyanathanvs asked

Trigger in 2008 db

Am using Trigger in my current sql 2008 db. As per requirement, As & when there is any insert/update/delete, the trigger has to fire & update the appl_audit_log table with correct values. The same is not working & not displaying the exact columns. Attaching the necessary script & Request your help in meeting my desired functionality output. Thanks,VSVaidya.,Am using Trigger in my current sql 2008 db. The same is not working for Insert/Update/Delete functionality & not displaying the exact columns. Attaching the necessary script & Request your help in meeting my desired functionality output. Thanks,VSVaidya.
triggers
triggers.zip (2.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
ramesh 1 avatar image
ramesh 1 answered
hi VSVaidya. Downloaded and tested on my desk top and it verified it is working fine, when you run a deleted command on cc_case_test table, Table Identitiy will not be changed, http://blog.sqlauthority.com/2007/03/15/sql-server-dbcc-reseed-table-identity-value-reset-table-identity/
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.