When i Execute the Below Query it doesn’t show me whether the guest account is enabled or disabled.
SELECT name, type_desc, is_disabled
FROM sys.server_principals
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
YOU CAN TRY SOMETHING LIKE THIS:
SELECT U.UID, U.STATUS, U.NAME, U.SID, P.TYPE, P.TYPE_DESC, P.IS_DISABLED, P.NAME, P.PRINCIPAL_ID FROM SYSUSERS U LEFT OUTER JOIN SYS.SERVER_PRINCIPALS P ON U.[name] = P.[name]