Skip to content

Instantly share code, notes, and snippets.

View HenrikSPoulsenBaader's full-sized avatar

Henrik Staun Poulsen at Baader HenrikSPoulsenBaader

View GitHub Profile
@HenrikSPoulsenBaader
HenrikSPoulsenBaader / query errorlog for important stuff
Created October 23, 2018 13:33
How to query the Errorlog for important stuff
SET NOCOUNT ON
-- Table variable to hold intermediate data
BEGIN TRY
DROP TABLE #ReportSQLErrorLogs
END TRY
BEGIN CATCH
END CATCH