Solved

MS SQL Login - Password Change Report

Posted on 2011-03-24
3
407 Views
Last Modified: 2012-05-11
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
Comment
Question by:danfiggolf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:danfiggolf
ID: 35211761
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
 
LVL 15

Expert Comment

by:Anuj
ID: 35212992
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
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 35213036
this query will return the last updatedate for a login password

SELECT [name], sid, create_date, modify_date
FROM sys.sql_logins
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question