SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The server principal '%%' is not able to access the database '%%' under the current security context...


The server principal '%%' is not able to access the database '%%' under the current security context

Author
Message
Leeland
Leeland
Hall of Fame
Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)

Group: General Forum Members
Points: 3994 Visits: 1331
I have a very odd situation. I have a SQL 2005 standard SP3 server. The server houses several application databases which all interact in some fashion.

The server was upgraded in June from SQL 2000 and have had a single issue. All of the sudden one of the applications (An Access 97) application starts failing with the stated error listed above.

It would error for some people in a reproducible fashion...others...sporadic...


The security is set up something like this for the application to function correctly.


DB1 ------> DB2 ------> DB3
------> DB4

So users get access via a role to DB1 and DB2

Cross database ownership chaining was enabled on the server (server wide vs. individual DB setting).

Users do not have direct access to DB3 and DB4.

Based on logic of what is being done, the process starts in DB1 then flows over to DB2 to update records...and then based on logic specific calls can go to DB3 or DB4 or both DB3 and DB4.


Several procedures were 'ALTERED' to include new logic and a new table column that were called by the application.

SO...of course when these error messages started popping up for end users it immediately was something the database group did or changed...

Nothing on the SQL server has changed and I am at a loss as to why this is happening.


The current 'resolution' has been granting public access to DB3 and DB4 which apparently stops the error.

Can anyone please explain why this would work? The procedures don't have public execute access...

I thought that the Cross database ownership chaining facilitated this kind of process (where DB1 login calls procedure in DB2 which in-turn calls procedures in DB3 where the login has 0 rights)


Thanks in advance,

Lee
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search