Getting account 'locked' status in SQL Server

Posted by Santhosha on Stack Overflow See other posts from Stack Overflow or by Santhosha
Published on 2010-04-09T12:20:23Z Indexed on 2010/04/09 13:13 UTC
Read the original article Hit count: 676

Filed under:
|
|

I want to unlock one account in SQL Server. Before unlocking I have to check whether that account is locked or not.

I want to unlock only if the account is locked.

Is there any SQL query or stored procedure to get the "Locked" status of SQL user?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about lock