I have SQL login group as "SC_NT\xxxx" in server. There are multiple users using this login group to access database objects. User "A" can able to access db objects from .net application. But when user "B" tried to access same db objects, its showing like
Error: The EXECUTE permission was denied on the object 'stored_procedures',
database 'test',schema 'dbo'.
Both the users are using windows authentication for access the objects. Kindly give me some clear idea to fix this issue??
Best Answer
2 possible reasons:
You can compare their role memberships on the database / server level, but membership in Windows groups cannot be checked via SQL Server - you would have to look in local groups AND Active Directory, if the machine is a member of a domain.
EDIT: here is a set of queries that may help you track down actual origins of permissions. Just make sure that you run them under the user with appropriate credentials, otherwise you will never see anything. Membership in
sysadmin
fixed server role is preferable.The only thing not covered here is a membership in Windows / Active Directory security groups, but, as I've said, it is impossible to track it within SQL Server.