Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

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?
0
danfiggolf
Asked:
danfiggolf
1 Solution
 
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
 
Aaron ShiloChief 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
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.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now