MS SQL Login - Password Change Report

I have the task to determine what SQL logins had their passwords changed within a specific time period.  What is the best way to script this or is there a tool within MS SQL 2005 or 2008 that can do this?
danfiggolfAsked:
Who is Participating?
 
Aaron ShiloConnect With a Mentor Chief Database ArchitectCommented:
this query will return the last updatedate for a login password

SELECT [name], sid, create_date, modify_date
FROM sys.sql_logins
0
 
danfiggolfAuthor Commented:
If the following is true? How can I then generate a report that lists out the SQL logins that do not meet password requirements?

Unfortunately, the closest you could get is to find out the last time the any of the properties (default database, default language, etc.) for a login has changed.  SQL Server 2005 does not store a date that represents the last time the PWD was changed.
0
 
AnujSQL Server DBACommented:
It is possible to track the password changes by using Audit Login Change Password Event Class. This event is not a part of SQL Server Default trace, so you need to create custom trace. check Tracking Password Changes - Article from SQLServerPedia for more details.

On SQL Server 2008 you can make use of SQL Server Audit feature to achieve this.

0
All Courses

From novice to tech pro — start learning today.