March 5, 2010 at 3:50 pm
hi guys, i was wondering if you can help me, I have two identical databases in different servers. I have a user with Read access permissions to these databases. In Database A the user can see 450 procedures, in DatabaseB the user can see only 4, i made sure the user has same permissions for both environments and he does, what else should i check for?
March 5, 2010 at 3:54 pm
Have you granted execute permissions to all the procedures to the user or a role he/she is a member of?
March 5, 2010 at 4:09 pm
in both environments , he is only a member of the role db_datareader for the DB.
March 5, 2010 at 5:02 pm
to be more specific, when the user runs this in one enviroment (A)
select count(1) from sys.procedures (nolock)
in Database Server A he gets around 400
in Server B same Database only 4
also if he tries to run sp_helptext 'proc name'
on Server B he gets the error
Msg 15009, Level 16, State 1, Procedure sp_helptext, Line 54
The object 'proc name' does not exist in database 'Expense_Ecu' or is invalid for this operation.
the proc is there in both Databases.
only db_datareader role assigned to user.
March 8, 2010 at 11:46 am
Login with that id and execute SELECT * FROM fn_my_permissions (NULL, 'DATABASE');
to see what permissions user has in db and compare them.
March 8, 2010 at 2:40 pm
thanks for your reply, i executed this in both environment.
in one db(A) he has
databaseCONNECT
databaseSELECT
databaseVIEW DEFINITION
in the other (B) only
databaseCONNECT
databaseSELECT
for the first one i went to the DB, db properties, permissions
his login , but i don't see the view definition checked.... what am i missing?
March 8, 2010 at 3:02 pm
Did you try
exec sp_helpuser 'user'
to see if they belong to different roles on the two db?
March 8, 2010 at 3:27 pm
that is what it was, the user's role had a view definition, thank you all of you!!!! 😀
March 8, 2010 at 4:04 pm
March 10, 2010 at 3:09 pm
Thanks here too. I just had a need for this.
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply