I want to unlock one account in SQL Server. Before unlocking, I need to check whether this 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 status "Locked" for an SQL user?
source
share