Monday, April 27, 2020

Check if SQL SERVER account is locked

SELECT LOGINPROPERTY('EWDocCon', 'IsLocked');

where EWDocCon is the user.

0=unlocked
1=locked

No comments:

Post a Comment