{"id":2498,"date":"2019-03-31T15:01:59","date_gmt":"2019-03-31T12:01:59","guid":{"rendered":"http:\/\/kifarunix.com\/?p=2498"},"modified":"2019-03-31T19:23:19","modified_gmt":"2019-03-31T16:23:19","slug":"enable-mssql-server-and-database-level-auditing","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/enable-mssql-server-and-database-level-auditing\/","title":{"rendered":"Enable MSSQL Server and Database Level Auditing"},"content":{"rendered":"

This guide describes how to enable MSSQL server and database level auditing. Database auditing basically involves capturing and\u00a0 monitoring database activities. The server-level audit involves server operations, such as management changes and logon and logoff operations while database level auditing involves actions such as data manipulation languages (DML) and data definition language (DDL) operations.<\/p>\n

Enable MSSQL Server and Database Level Auditing<\/h3>\n

In this guide, we are going to learn how to enable MSSQL server and database level auditing using SQL server 2017 (evaluation copy) using SQL Server Management Studio.<\/p>\n

Login to your SQL server 2017 using SSMS.<\/p>\n

\"enable<\/a><\/p>\n

Create SQL Database Level Audit<\/h4>\n

To create SQL database level audit, navigate to Security<\/code> > Audits<\/code>. Right click on Audits and click New Audit<\/code>.<\/p>\n

\"enable<\/a><\/p>\n

On the window that opens up, set the Audit name, Audit destination (File), Audit File path, maximum Audit file size and leave the other options with default settings. To see a description of each options, check here<\/a>.<\/p>\n

\"enable<\/a><\/p>\n

Once you are done configuring the Audit options, click Ok<\/code> to save it.<\/p>\n

Next, navigate to Databases<\/strong><\/code> > Expand database you want to enable audit (card-data in my case)<\/code> > Security<\/code> > Database Audit Specifications<\/code><\/strong>.<\/p>\n

Right click on Database Audit Specifications<\/code> and click New Database Audit Specifications<\/code> to create new database audit. On the window that opens up, set the name of the database audit, Select the Audit you created above from the drop down. Next, select the audit type actions.<\/p>\n

\"enable<\/a><\/p>\n

For demonstration purposes, we selected the:<\/p>\n