Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister Today
select [name], is_disabled from sys.server_principals
where type_desc = 'SQL_LOGIN'
Open in new window
SELECT loginname, CASE LOGINPROPERTY(loginname,'IsLocked')
WHEN 0 THEN 'No'
WHEN 1 THEN 'Yes'
ELSE 'Domain User'
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.