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

  • SEARCH
  • Home
  • 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 8288429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:17:02+00:00 2026-06-08T12:17:02+00:00

I have the following situation. There is one central SQL Server (2008 R2, Standard

  • 0

I have the following situation. There is one central SQL Server (2008 R2, Standard Edition) and more (say 10) technological SQL Servers (2008 R2, Express). The technological servers are located near “real” machines, and they capture data from sensors. The data are to be passed to the central SQL Server to be processed somehow. All machines are located in the same domain.The Service Broker was chosen to send the data to the central Server.

I have tried the standard MSDN tutorials Completing a Conversation Between Instances that shows how to create users without login, the certificates, etc. To summarize, it is quite a lot of things that are to be parametrized. No problem with manual settings for two servers, but…

  1. What is usual approach when working with more servers? If the servers are to be added in future, is it reasonable to insert the parameters (computer names, ports, etc.) into some configuration table or to create some stored procedures with hardwired constants… to be able to (re)construct the communication channels for newly added SQL servers?

  2. All the SQL servers are located within the same domain. Is it reasonable to simplify the deployment by not creating the users and the certificates? I have found the Remus Rusanu’s answer on Service broker with only domain account on how to do that? Would you use the approach in real environment? What are the pros and cons?

Thanks, Petr

  • 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-08T12:17:03+00:00Added an answer on June 8, 2026 at 12:17 pm

    When we designed Service Broker we tried to make a very clear distinction between design time (when you write the code) and deployment time (when the code is actually used in production). We took very explicit measures to be able to completely reconfigure the deployment without changing a single line in the the application code. We considered things like the message type, contract and service names used as design time. How you write your activated procedure and the RECEIVE, the code that issues BEGIN DIALOG/SEND verbs are all, again, considered design time.

    Deployment time are things like routing information (which changes when the physical topology of the network changes), certificates used for security (they expire and require replacement), permissions, endpoints ports etc.

    A special case is dialog security and remote service bindings: it is a mixture of design time (application code specifies WITH ENCRYPTION = ON) and deployment time (a remote service binding is present). The idea is that if an application requires dialog security it must specify ENCRYPTION = ON (which is the default if not specified) and then the administrator, at deployment time, must configure dialog security. Or, if the application does not explcilty require dialog security it can specify ENCRYPTION = OFF and then is up to the administrator, at deployment time, to configure dialog security if he chooses so.

    Everything related to endpoint security (transport security) is considered deployment time.

    Finally a great deal of care was put in place to make the programing experience and the available API behave identically whether your pair of services is local within a database, in two databases on the same instance or on two separate instances (ie. make sure coupling does not creep in).

    I provided this explanation in hope it sheds some light and puts things better in perspective. To answer your questions: you certainly can write an application that is compeltely agnostic to the actual physical layout of your deployment, including the name, location, listening port and number of hosts involved. Basically the application code is all about services conversing with services and has 0 knowledges about routes, certificates, endpoints and so on. But that is all from the point of view of application development. In practice the deployment is often automated and is an application in itself. Even if, as often the case is, is the same person or team that codes both applciations (or both sides of the same application) is healthy to think at it as two compeltely separate tasks (or apps). If you can make this separation and keep the code clean, you’re nealy there. The ‘app’ code has no knowledge whatsoever about where the service it talks to is, or where has the message it processes was sent from. The configuration code (or app) is all about knowing exactly where a service resides, how should a route be configured, what endpoints are listening on what ports etc etc.

    As a side note, there is a thing called Service Broker Dynamic Routing which allows a configuration in which SSB itself is used to configure a large deployed site (ie. SSB can contact a central repository to locate routing info) but I would not recommend it.

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

Sidebar

Related Questions

Please help me with the following situation: In SQL Server 2008 I have a
I have the following situation: There is one custom view inside of the first
I have the following situation. Assuming there are 3 systems: A,B,C and A is
I have a following situation in my project. There are some tag values which
I have following Situation, Server A sends some data (HTML form) to server B,
I have the following situation: Three concrete service classes implement a service interface: one
I have the following situation: There is a windows folder that has been mounted
I have the following situation: One Destination can have Many Aliases Logically : I
I have the following situation: there is a table in the DB that is
i have the following situation: one drawing layer (graphics object with lineTo, etc.) one

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.