How to manually enable advanced SQL tracing
To manually enable advanced SQL tracing, follow these simple steps:
- On the Netwrix Auditor host, navigate to
C:\Program Files(x86)\Netwrix Auditor\SQL Server Auditing - Find the file
sqlcr_audit_db.sql - The set of files here, starting with
sqlcr_are tied to the monitoring plan configuration.- Follow the table below to determine which files are needed and then continue with the steps.
- Copy this file to the SQL Server host
- Launch SQL Server Management Studio (SSMS) and connect to the audited SQL Server
- Drag and drop the
sqlcr_audit_db.sqlfile into the open blue space right of the Object Explorer window - After the text from the stored procedure appears, click the Execute button on the tool bar at the top of the screen.
| Auditing Configuration Changes | sqlcr_audit_db.sql |
|---|---|
| Failed SQL and Windows logons | sqlcr_sp_logon_failed.sql |
| Successful SQL logons | sqlcr_sp_logon_success.sql |
| If all logon boxes are checked | sqlcr_sp_logon_success_failed.sql |