Answered by:
Database and Tables Access Logs

Question
-
Hi,
How do I check if someone is accessing a DB or table? Is there a way to see logs of people running select queries and other queries against DBs and tables?
Thank you.
Tuesday, January 27, 2015 12:19 PM
Answers
-
Hello,
By default SQL Server don't log such Information, you have to implement an auditing on your own.
=> SQL Server Audit (Database Engine)
Olaf Helper
[ Blog] [ Xing] [ MVP]- Edited by Olaf HelperMVP Tuesday, January 27, 2015 12:37 PM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:45 AM
Tuesday, January 27, 2015 12:36 PM -
Turn ON sql server profiler and filter out desired database.
Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence
- Proposed as answer by Kev G Cole Tuesday, January 27, 2015 2:34 PM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:46 AM
Tuesday, January 27, 2015 1:24 PMAnswerer -
Refer the below link
http://www.databasejournal.com/features/mssql/article.php/3887996/Determining-Object-Access-Using-SQL-Server-Profiler.htm
--Prashanth
- Proposed as answer by Qiuyun YuMicrosoft contingent staff Wednesday, January 28, 2015 7:07 AM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:46 AM
Tuesday, January 27, 2015 2:32 PMAnswerer
All replies
-
Hello,
By default SQL Server don't log such Information, you have to implement an auditing on your own.
=> SQL Server Audit (Database Engine)
Olaf Helper
[ Blog] [ Xing] [ MVP]- Edited by Olaf HelperMVP Tuesday, January 27, 2015 12:37 PM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:45 AM
Tuesday, January 27, 2015 12:36 PM -
Turn ON sql server profiler and filter out desired database.
Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence
- Proposed as answer by Kev G Cole Tuesday, January 27, 2015 2:34 PM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:46 AM
Tuesday, January 27, 2015 1:24 PMAnswerer -
What's a sample event I should see in the event log, say the configuration is in place.Tuesday, January 27, 2015 1:27 PM
-
Refer the below link
http://www.databasejournal.com/features/mssql/article.php/3887996/Determining-Object-Access-Using-SQL-Server-Profiler.htm
--Prashanth
- Proposed as answer by Qiuyun YuMicrosoft contingent staff Wednesday, January 28, 2015 7:07 AM
- Marked as answer by pituachMVP Monday, February 2, 2015 7:46 AM
Tuesday, January 27, 2015 2:32 PMAnswerer