sp_passwordpolicy

sp_passwordpolicy is an interface that a user with a sso_role can use to specify, remove, and list new password complexity options. This information is stored in the master.dbo.sysattributes table.

sp_passwordpolicy {set | clear | list }, policy_option, option_value

where:

Example 1

To set a password expiration warning interval to seven days before the password expires, enter:

sp_passwordpolicy 'set', 
      'password exp warn interval', 7

Example 2

To list the option for minimum number of special characters, enter:

sp_passwordpolicy 'list', 
      'min special char in password'

Example 3

To reset disallow simple password to the default value, enter:

sp_passwordpolicy 'clear', 'disallow simple passwords'