tracking logins into SQL Server

is there any mechanics to track the above, or will we have to do it purely through Event viewer in the OS?

Thanks
LVL 6
anushahannaAsked:
Who is Participating?
 
vdr1620Commented:
there is an option in the SQL server Settings to Audit your logins..If that is what you are looking for

Go to SSMS and right click your server, choose Properties and then select the Security tab. Select the setting that you want, "Both failed and Successful Logins"
0
 
anushahannaAuthor Commented:
OK. So this will get logged in SQL Error log?
0
 
vdr1620Commented:
No, it gets logged in the SQL Server Event Log
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
anushahannaAuthor Commented:
you mean xp_readerrorlog?
0
 
vdr1620Commented:
No..I am talking about Sql server logs. Under Management ---> SqL server logs..i am not sure about the SP,but definitely not xp_readerrorlog.. It might be sys.Xp_logevent..

I also find a nice article on Sql Login Audits..thought you might be insterested

http://www.sqlservercentral.com/articles/Security/sqlserverauditingpart1/1451/
0
 
anushahannaAuthor Commented:
Thanks vdr1620.

actually, it is indeed xp_readerrorlog. the article also references it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.