Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Report of Failed Logins 1

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
hi experts,

This is 2005. I have enabled auditing of failed logins.

The failures are logged into the SQL Server logs.

I'm interested in how some of you automate the reporting of failed logins - I'm not looking for an Alert - I need to produce a quarterly report for auditors. I do not have any log Reader software....

Thanks for any ideas. John

 
There are a few ways to do this (DDL triggers etc), here is a simple way to read the sql log.

DECLARE @errlog TABLE(LogDate datetime null,ProcessInfo nvarchar(4000),[Text] Text)

INSERT @errlog
EXEC sp_readerrorlog --Look up in BOL, you can supply number to get older logs

SELECT * FROM @errlog
 
Thanks, Jamfool. sp_readerrorlog is working well.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top