Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

CREATE DATABASE AUDIT SPECIFICATION for all tables?

$
0
0

My task is to find out who is doing what to tables in a database that currently has wide open access. Can I create a database audit specification for all tables or do I have to write one for each table. It is trivial to write a script to generate them but it seems like there should be a way to say all tables.

CREATE DATABASE AUDIT SPECIFICATION SomeName
FOR SERVER AUDIT SomeOtherName
	ADD (SELECT, UPDATE, INSERT, DELETE ON [all tables] BY PUBLIC);

Thanks.

Tom G.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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