[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Retf

3/15/2007 2:57:00 PM

Hi all,

I need know if have same way to create one trigger ( I think that this
trigger need be DDL, I don't know) that when any: INSERT, UPDATE OR DELETE
is executed in any table, the thata is captured and send to another table,
for audit.

Have any way to do this?

Thanks

SQL SERVER 2005


2 Answers

weilu

3/16/2007 2:05:00 AM

0

Hello Retf,

The DDL trigger is used for monitor the modification of the database table
schema and other configuration.

You could not use the DDL trigger to monitor the UPDATE, DELETE and INSET
operation.

The only way to do what you want is to add one trigger for each table you
want to audit.

Hope this will be helpful.

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default....
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/de....

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

weilu

3/20/2007 7:13:00 AM

0

Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.