Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
bsethi24
Starting Member
25 Posts |
Posted - 2012-05-16 : 11:00:16
|
Dear All, I am in need to make a log file for all the users with their System Name (same as Hostname of SP_Who2) who have logged in SQL either by SSMS or by any application or by any other way & run SELECT, INSERT, UPDATE, DELETE operations on list of given table names.How can we achieve this? Please guide. |
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2012-05-16 : 16:10:38
|
My initial reaction is to ask, "What are you actually trying to achieve here?" Perhaps if you could eleborate on that, we could offer better feedback. Based on what you have said so far, using Profiler or Extended Events to capture, filter and write to a table or file would be direction to consider.=================================================There is a foolish corner in the brain of the wisest man. -Aristotle, philosopher (384-322 BCE) |
|
|
bsethi24
Starting Member
25 Posts |
Posted - 2012-05-17 : 04:01:43
|
Dear Bustaz Kool, I need to achieve system name & users name those are accessing a particular table or list of tables. We don't have separate login for each & individual user & everyone accessing DBs by one login. So, how do we make a log file which has "system name", "time of access", "user name", "Operation Type or Full Query executed by user" for a particular table or list of tables. |
|
|
Sachin.Nand
2937 Posts |
Posted - 2012-05-17 : 04:13:44
|
Set up database auditing.After Monday and Tuesday even the calendar says W T F .... |
|
|
|
|
|
|
|