Hi,
Can we track by any chance if the sql login account or windows was disabled or locked. Presently I see that its not locked. But would like to check if we have any repository to check and find that out.
T
From the SQL Server perspective, you can't track the status unless you set something up in advance to audit the status.
You can check the current status of the logins by querying sys.server_principals:
SELECT name, LOGINPROPERTY(name, 'IsLocked') as is_locked,is_disabled
FROM sys.server_principals
Sue