Setting the login and role expiration interval for a password

System administrators and system security officers can:

Use

To

sp_addlogin

Specify the expiration interval for a login password at creation.

sp_modifylogin

Change the expiration interval for a login password. sp_modifylogin affects only user roles, not system roles.

create role

Specify the expiration interval for a role password at creation (only the system security officer can issue create role).

alter role

Change the expiration interval for a role password (only the system security officer can issue alter role).

The following rules apply to password expiration for logins and roles:

For details on the syntax and rules for the commands and system procedures, see the appropriate Reference Manual.