返回顶部

收藏

设置并查看数据库的C2审计的结果

更多
EXEC sp_configure 'show advanced option', 1;
EXEC sp_configure 'c2 audit mode', '1' RECONFIGURE;
EXEC sp_configure 'c2 audit mode', '0' RECONFIGURE;
EXEC sp_configure 'common criteria compliance enable',1;
select * from sys.traces

-- Reads from a file that is named \\serverName\Audit\HIPPA_AUDIT.sqlaudit 
SELECT * FROM sys.fn_get_audit_file ('C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\audittrace20130216145422.trc',default,default);
GO

标签:sql

收藏

0人收藏

支持

0

反对

0

发表评论