Cross-Database Ownership Chaining - do not forget about the database owner
SQL
Thread Starter: Paschal
Started:
Replies: 0

Ireland .NET Developer Alliance :: Forums » Technologies » SQL » Cross-Database Ownership Chaining - do not forget about the database owner
« Previous Thread Next Thread »
   30 Oct 2004, 5:26
Paschal is not online. Last active: 21/01/2005 18:37:42 Paschal
Cross-Database Ownership Chaining - do not forget about the database owner

With Service Pack 3 - we were introduced to new settings for cross-database ownership chaining.

The scenario:

You have a database filled with stored procedures which perform SELECT operations against multiple databases.  Pre SP3 - you granted rights to users for execution of these stored procedures.  Everything works.

After installing SP3 - your users start seeing "SELECT permission denied on such and such".  You check to see if cross-database ownership chaining is enabled.  After doing so, you STILL get the "permission denied" error.

The answer (for this scenario) - check the database owner!   The database owner (for example, "sa") of the database containing the called procs, must also be the owner of the databases where those procs are performing SELECTs (or other) operations against.


  
  Page 1 of 1 (1 items)
Ireland .NET Developer Alliance :: Forums » Technologies » SQL » Cross-Database Ownership Chaining - do not forget about the database owner

Powered by Community Server :: Forums