Last active
January 18, 2016 14:00
-
-
Save JosiahSiegel/eaa2f716d3d2bc0c3733 to your computer and use it in GitHub Desktop.
#MSSQL #Research #Users Read error log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @temp_error_log TABLE | |
( | |
date datetime, | |
process varchar(50) null, | |
text varchar(MAX) null | |
) | |
INSERT INTO @temp_error_log | |
EXEC sp_readerrorlog 0, 1--, 'Login failed' | |
SELECT * FROM @temp_error_log | |
ORDER BY date DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment