Quantcast
Channel: DBA SCRIPTS – SQL-BOX.COM
Viewing all articles
Browse latest Browse all 17

HOW TO CHECK IF A USER ACCOUNT IS LOCKED? IF LOCKED HOW TO UNLOCK IT?

$
0
0
There are times a DBA gets a request to see the user account got locked or the user is unable to login. Here is the simple script to see if a login account is locked or not. Use Master Go select loginproperty('UserName','Islocked') GO If  the script above returns 1- Account got Locked 0- Not Locked … Continue reading

Viewing all articles
Browse latest Browse all 17

Trending Articles