Hello Everyone,I have 2 Databases DB1 & DB2 (Owner is 'sa' for both)Table1, SP1 both exists in DB1 (Schema is 'dbo')SP2 exists in DB2 (Schema is 'dbo')SP1 - Does a select on Table1SP2 - It is created 'With Execute AS Self' and Calls SP1 (Execute DB1.dbo.Sp1) [i]Create Procedure SP2With Execute AS Selfas Exec DB1.dbo.SP1[/i]When I execute SP2, I get error "The server principal "sa" is not able to access the database "DB1" under the current security context."I tried enabling Cross Database ownership at both Server and DB level and still not working.Please help me, thanks in advance.
↧