Quantcast
Channel: Active questions tagged audit - Database Administrators Stack Exchange
Viewing all articles
Browse latest Browse all 147

SQL Server 2012 how to audit user's access to database tables and views?

$
0
0

We have a read-only login account that unfortunately was created without proper planning, and now users throughout the company are using this login to access tables and views in our database. The database has grown to include private information we'd rather keep outside of this read-only login. Changing it to access only certain tables is not an option, as it will break other macros and other ODBC related access that could require access to tables we've not thought of. The database has hundreds of tables!

Is there a way (auditing preferably), to record all tables or views the user has accessed? I'd rather use auditing than tracing, only due to the possible file size, but I am happy to be convinced on a better method.

Has to be for SQL Server 2012 R2.

Thanks

UPDATE

I've tried the SQL Audit methods described here, but I don't see options in SQL Server 2012 to audit SELECT for example.

I've created a new audit and enabled it.

Then I tried to create a new Server Audit Specification, but this is where I am stuck.

enter image description here


Viewing all articles
Browse latest Browse all 147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>