sp_iqlistlockedusers procedure

Function

Lists user IDs that are locked out of the database.

Syntax

sp_iqlistlockedusers

Permissions

DBA authority required.

See also

“sp_iqlocklogin procedure”

Description

Lists the user IDs of all users that have been locked out the database with sp_iqlocklogin.

Errors

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

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

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

Example

call sp_iqlistlockedusers

Locked_Users

rose