Trigger/auditing problem
From: harvinder (harvinder_at_discussions.microsoft.com)
Date: 12/27/04
- Next message: Mike Epprecht \(SQL MVP\): "Re: Number of SQL Server logins"
- Previous message: Jake: "Re: Help with xp_fileexist"
- Next in thread: David Gugick: "Re: Trigger/auditing problem"
- Reply: David Gugick: "Re: Trigger/auditing problem"
- Reply: Hugo Kornelis: "Re: Trigger/auditing problem"
- Reply: Nigel Rivett: "RE: Trigger/auditing problem"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 27 Dec 2004 13:17:06 -0800
Hi,
We need to do auditing on few of our tables and want to capture the
following information using trigger on tables:
1) when was the table modified
2) How is table modified - from Query Analyzer(QA) or Application
3) If from QA - directly modified table or ran procedure
I was able to get first 2 information using getdate() and
master..sysprocesses in the trigger.
How to get the 3rd information. Is any system table store this information
whether the sql is run against the table directly or sql executes the
procedure that modifies the table?
Thanks
--Harvinder
- Next message: Mike Epprecht \(SQL MVP\): "Re: Number of SQL Server logins"
- Previous message: Jake: "Re: Help with xp_fileexist"
- Next in thread: David Gugick: "Re: Trigger/auditing problem"
- Reply: David Gugick: "Re: Trigger/auditing problem"
- Reply: Hugo Kornelis: "Re: Trigger/auditing problem"
- Reply: Nigel Rivett: "RE: Trigger/auditing problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|