Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Service Broker / August 2008

Tip: Looking for answers? Try searching our database.

minimum required security for messaging between db's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Horner - 21 Aug 2008 15:56 GMT
Hello,

I'm working with services in separate dbs on the same SQL2005 instance.
When trying to send a message from one service to the other, it fails with a
security context error (916).

The context of the user in the originating db is a dbo.  What is the minimum
access required for the user on the targetDB?

Here's the code:
  declare @serviceBrokerId nvarchar(128)
  declare @dbName varchar(128)
  SELECT @dbName = 'targetDB'

  SELECT @serviceBrokerId = service_broker_guid
  FROM sys.databases
  WHERE name = @dbName

  DECLARE @conversationHandle UNIQUEIDENTIFIER ;
  BEGIN DIALOG CONVERSATION @conversationHandle
  FROM SERVICE DBInboundIntegrationPipelineInitiatorService
  TO SERVICE 'NexusInboundService', @serviceBrokerId
  WITH ENCRYPTION = OFF;

  -- Send the message on the dialog.
  SEND ON CONVERSATION @conversationHandle
  (@msg) ;

The DBInboundIntegrationPipelineInitiatorService executes as "SELF"

Thanks,
KH
Kevin Horner - 21 Aug 2008 18:04 GMT
Never mind...RTFM...

My initiator DB was not set to TRUSTWORTHY

> Hello,
>
[quoted text clipped - 28 lines]
> Thanks,
> KH
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.