Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Service Broker Cross DB function

$
0
0

Hi,

I have the following setup: I have a Service Broker on database "DB_A". I call the stored proc (SP_ADDINTOBROKER) which adds a new line in the pipe. Parallel to adding a line in the pipe another stored proc is called to retrieve the value (SP_GETFROMBROKER).

In this stored proc I call a function which retrieves a value from "DB_B".

So I execute the main stored proc (SP_ADDINTOBROKER) which calls SP_GETFROMBROKER. In SP_GETFROMBROKER i call a function which calls DB_B. I get the following error:

The server principal "xxxxxx" is not able to access the database "DB_B" under the current security context.

xxxxx is the user defined in the Broker Queue.

From what I've read this seems to be a cross DB issue. Anyone has an idea?

Best regards,


Jeppen Twitter: @DoSTHGreat


Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>