sp_iqlistexpiredpasswords procedure

Function

Lists users with expired passwords.

Syntax

sp_iqlistexpiredpasswords ['userid']

Usage

userid Returns a row if the specified user’s password has expired, or no results if the password has not expired.

By default, this procedure returns a list of users whose passwords have expired.

Permissions

DBA authority required.

See also

“sp_iqmodifyadmin procedure”

“sp_iqmodifylogin procedure”

Errors

The following error may occur. Cause is listed after the error.

Permission denied: You do not have permission to execute the procedure "sp_iqlistexpiredpasswords".

Cause: A user without DBA role tried to execute sp_iqlistexpiredpasswords.

Example

call sp_iqlistexpiredpasswords

Expired_Users

jack

jill