I want to block functionality of my client application if user is not admin. But the problem is how to check in program that login and password was admin’s?
Share
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.
I’m assuming two things:
db_owner. (Sorry, I don’t have SQL Server in front of me and don’t remember all the role names off the top of my head, so I’m pulling one that is close enough out of the MSDN documentation page example.)If these assumptions hold, then it looks like
IS_MEMBERwill work.