|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
I am creating a Login in code while Installation. I have a requirement now that Login should have Password expiration policy. How do i set this? Please help.
Thanks
Chelladurai
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 5:02 AM
Points: 2,365,
Visits: 1,825
|
|
Hi
If you are creating logins from SSMS you check the checkbox which says "Enforce password policy".
If you are using a script use the CHECK_EXPIRATION option of the "Create login" statement.
"Keep Trying"
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
Thanks for your response. How can i set the Interval for Password Expiration.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 5:02 AM
Points: 2,365,
Visits: 1,825
|
|
Hi
check this out
http://www.mssqltips.com/tip.asp?tip=1088
"Keep Trying"
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:11 PM
Points: 37,741,
Visits: 30,020
|
|
As far as I know, if the SQL Server is on a domain, the domain's password policy is the one that's enforced. If the server's not on a domain, then the local password policy is enforced.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 07, 2010 3:20 AM
Points: 4,
Visits: 5
|
|
| Hi! I just read this thread (3 years later). Does anybody know how I can get a notification that someone's password will expire in another n days? or to trigger an SP to take action n days before expiry? I'm assuming an SQL server login with Enforce Password Policy and Enforce Password Expiration. Thanks in advance ...
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 8:17 AM
Points: 197,
Visits: 688
|
|
| Use the LOGINPROPERTY method to find all the infos you need (http://msdn.microsoft.com/en-us/library/ms345412.aspx).
|
|
|
|