Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

SQL_Login_Password_Expiry_Notification

By Abhijit Shedulkar,

Basically in SQL server DBA teams apply the password policies (i.e. enforce password policy & enforce password expiration) in sql login while creating new login for improve the security. But once password policy applied there are no options available in SSMS for getting the alert notification to DBA team about your created password will be expire on particular date before expire the login.

I have create one stored procedure which is select the list of sql or window authentication logins from master database which login created with password policy and check the expiry date of respective login. If any login will be expire after 2 day it will send proactively mail to DBA having list of login with expiry date.

How to Use:

  1. Create a “SQL_Login_Password_Expriy_Notification” store procedure on your master database
  2. Create one SQL Job with Name” SQLPassword_Expriy_Notification” and schedule it every day once on suitable time.

I Would like to request, If you have any more idea to improve in above alert notification script please suggest

Thanks & regards

Abhijit Y Shedulkar

SQL Database Administrator

Clover Infotech Pvt.Ltd (India)

Total article views: 1249 | Views in the last 30 days: 10
 
Related Articles
FORUM

Password expired before expiration date

password expired

FORUM

How do i Set Password Expiration days for a SQL Login

How do i Set Password Expiration days for a SQL Login

FORUM

How do i Set Password Expiration days for a SQL Login

How do i Set Password Expiration days for a SQL Login

FORUM

password expiration and password policy

password expiration and password policy

FORUM

How do i Set Password Expiration days for a Sql Login

How do i Set Password Expiration days for a Sql Login

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones