Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Export SQL Query to Excel

$
0
0

HI everyone 

I have audits running on SQL Server 2012. Its auditing various database and server level features. When talking to the individual that would be monitoring these audits he does not want to go in the management console to view audit files. I found where i can use this SQL statement ,SELECT * FROM sys.fn_get_audit_file ('\\serverName\Audit\HIPPA_AUDIT.sqlaudit',default,default);, however i want to export this as a excel sheet so the auditor can monitor these files without entering the SQL management console. I know that i can output the results as a excel file through the menus but i want to add a SQL statement at the bottom so I can add it as a job.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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