Solved

sql 2008 trace table access

Posted on 2012-03-27
2
329 Views
Last Modified: 2012-04-25
I needed to know who is accessing three tables in SQL DB. There might be 20 developers in a list who might be accessing the table.
What events do I capture at the minimum for this? I was worried about the size, since I need to trace it for about a week or more.
Please let me know the minimum required events/filters that I can use
0
Comment
Question by:sqlserverdba
2 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 250 total points
Comment Utility
Filters:  Filter for the table name in the SQL text.
             If more than the specified users access this table, then Filter the machine connections.  This is more reliable than filtering off of username, especially when there may be cases when testing is being done on a generic reporting user or some such.
Return SQL Text, username (check which version is most usable for you), machine.
0
 
LVL 8

Assisted Solution

by:avirups
avirups earned 250 total points
Comment Utility
I would recommend you use SQL Server Audit as you are using sql 2008. This is a much less resource intensive option and is one of the new features of sql 2008.

All the details you need can be found in the following link:
http://www.bradmcgehee.com/2010/03/an-introduction-to-sql-server-2008-audit/
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now