Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8553995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:46:51+00:00 2026-06-11T14:46:51+00:00

I have 2 databases within single SqlServer instance. I need to send a message

  • 0

I have 2 databases within single SqlServer instance.
I need to send a message from one database to another using ServiceBroker services.
How can it be done without setting TRUSTWORTHY to “ON” on the database, because in my case this is not the option due to security risks?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:46:52+00:00Added an answer on June 11, 2026 at 2:46 pm

    You must set up dialog security, with certificates, see Certificates for Dialog Security:

    • create DB master keys on both DBs involved
    • create and export a certificate for the initiator service owner (likely dbo)

      USE <initiatordb>;
      CREATE CERTIFICATE [<initiatorservicename>] AUTHORIZATION [<initiatorserviceowner>] WITH SUBJECT = '<initiatorservicename>';
      BACKUP CERTIFICATE [<initiatorservicename>] TO FILE = 'c:\temp\<initiatorservicename>.cer';

    • do the same, for target service:

      USE <targetdb>;
      CREATE CERTIFICATE [<targetservicename>] AUTHORIZATION [<targetserviceowner>] WITH SUBJECT = '<targetservicename>';
      BACKUP CERTIFICATE [<targetservicename>] TO FILE = 'c:\temp\<targetservicename>.cer';

    • import the initiator service owner’s cert in the target DB, create a proxy user for it and grant SEND permission:

      USE <targetdb>;
      CREATE USER [<initiatorserviceproxyuser>] WITHOUT LOGIN;
      CREATE CERTIFICATE [<initiatorservicename>] AUTHORIZATION [<initiatorserviceproxyuser>] FROM FILE='c:\temp\<initiatorservicename>.cer'
      GRANT SEND ON SERVICE::[<targetservicename>] TO [<initiatorserviceproxyuser>];

    • import the target service owners’ certificate in initiator DB, create a proxy user for it and map the remote service binding:

      USE <initiatordb>;
      CREATE USER [<targetserviceproxyuser>] WITHOUT LOGIN;
      CREATE CERTIFICATE [<targetservicename>] AUTHORIZATION [<targetserviceproxyuser>] FROM FILE='c:\temp\<targetservicename>.cer'
      CREATE REMOTE SERVICE BINDING [<targetservicename>] WITH SERVICE_NAME = '<targetservicename>', USER = [<targetserviceproxyuser>];

    I typed all this from memory, I hope I got the syntax right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two databases named: DB_A and DB_B . Each database has one collection
I often build and modify databases from within Visual Studio 2010 Pro. I have
We have been using Visual Studio 2010's database projects for several internal or single-customer
I have to develop a application (Winforms-application) which is connected to a database within
I have a table within my database that has many records, some records share
I have a table called routes within my database where each route has an
I have currently got imagepaths stored within the database and image files stored in
I currently have a problem attepting to update a record within my database. I
Hi there in my database I have 3 columns, is_contract, is_permenant and is_temporary. Within
I have within my Sql Server 2008 database a trigger which will run on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.