Log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005

  • Dear All,

    Is there any log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005. ?

    Thanks.

  • Failed logins arent held in their own log perse. They are all in the SQL Server log.

    If you want to get all the failed logins, your best bet is to open the SQL Server Error log (selecting the required log segment) and then apply a filter to look for 'login'.

    Keep in mind there are two types of login failure. One is the straight forward login failure where a user/connection/host does not have any access (no or denied login) and the second is sspi handshake which indicates an authenticated login is trying to do something above their access level.

    HTH 🙂

    Adam Zacks-------------------------------------------Be Nice, Or Leave

  • Hi,

    This is Chandra regarding SQL Server Logs.

    how to check all SQL Logs like daily i am(chandra) going to log at 9am and doing some

    activities like....database moving and etc..and logoff at 6pm....Now i want to check like"chandra at what time login and activities and logoff".

    I am not able to see from "sql server agent-->error logs".

    please give a solution

    Thanks & Regards,

    Chandra

  • Hi,

    This is Chandra regarding SQL Server Logs.

    how to check all SQL Logs like daily i am(chandra) going to log at 9am and doing some

    activities like....database moving and etc..and logoff at 6pm....Now i want to check like"chandra at what time login and activities and logoff".

    I am not able to see from "sql server agent-->error logs".

    please give a solution to chandraa.bollineni@gmail.com

    Thanks & Regards,

    Chandra

  • Go to sql server instance properties->Security->Login Auditing->Select Both failed and successful login.

    This will be recorded in sql server log or u can view by running sp_readerrorlog/ xp_readerrorlog

  • Hi,

    Thanks for your reply.

    I already checked in this way and it's already fixed those settings like both failed and successful logins.But i am not able to see what are the activities has done by partcular user like chandra did backup and restoration at that time......

    Daily i am going to login at 9am and did one activity like database moving and taking backup and going to logoff at 6pm.

    so,i want to see "chandra logged in at 9am,and did backup and some activities and logged off at 6pm".

    I hope you can understand my issue.

    Please reply....

    Thanks & Regards,

    Chandra

  • chandraa.bollineni (11/4/2011)


    Hi,

    Thanks for your reply.

    I already checked in this way and it's already fixed those settings like both failed and successful logins.But i am not able to see what are the activities has done by partcular user like chandra did backup and restoration at that time......

    Daily i am going to login at 9am and did one activity like database moving and taking backup and going to logoff at 6pm.

    so,i want to see "chandra logged in at 9am,and did backup and some activities and logged off at 6pm".

    I hope you can understand my issue.

    Please reply....

    Thanks & Regards,

    Chandra

    There's nothing that exists by default with that level of detail...you can get some stuff fromt eh default trace related to DDL events,,,it's the "did some activities" and logout that's not going to be available without a better definition and some additional tracing, i think.

    You'll have to use a server side trace, and actually decide what events you want to actually capture....

    two of the things you asked for would be these two events, but you can see the possible events to track in :the query

    select * from sys.server_events

    LOGON

    AUDIT_BACKUP_RESTORE_EVENT

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply