Reputation: 35
I have a "who-did-what-to-which-table-and-when" requirement from one of my clients. Brief description of the system is as follows:
My issue is as follows:
My Question is:
Is there anyway I can link the username from the Login table to the DDL trigger? The Login table has 2 columns, Username and Password. Is there some join/ any other operation that I'm possibly overlooking here?
System works on SQL Server 2008
Upvotes: 3
Views: 951
Reputation: 343
You might be able to trace the select
statement of the user/password
table and then join on spid and time frame.
https://learn.microsoft.com/en-us/sql/relational-databases/sql-trace/sql-trace
sp_trace_create
.sp_trace_setevent
. Batch Complete should work in this case.sp_trace_setfilter
. Filter it down to your user/password
table.sp_trace_setstatus
.sp_trace_setstatus
.sp_trace_setstatus
.Upvotes: 1