Permalink
Browse files

Fix sensitive case of LoginFailed query

  • Loading branch information...
gboge committed Oct 2, 2017
1 parent bede66f commit 77127d7de7082324faa9088138475751a337a15c
Showing with 3 additions and 3 deletions.
  1. +3 −3 KServer.cs
View
@@ -879,9 +879,9 @@ SELECT LogDate
FROM #KMOLoginFailed
WHERE (SUBSTRING(vchMessage,1, 12) = 'Login failed'
OR vchMessage LIKE '%SSPI%'
OR processinfo = 'Logon')
AND logdate > '{1}'
AND logdate < '{2}'
OR ProcessInfo = 'Logon')
AND LogDate > '{1}'
AND LogDate < '{2}'
ORDER BY LogDate DESC
DROP TABLE #KMOLoginFailed", logFileNumber, startTime.ToString("yyyyMMdd HH:mm:ss"), endTime.ToString("yyyyMMdd HH:mm:ss"));

0 comments on commit 77127d7

Please sign in to comment.