Service Broker

  • Hi

    I'm trying to get an example working where a database talks to another database in another network. We were able to get it working in the same server but we are struggling from one server to the other.

    Please can somebody point me towards a working tutorial or some key words that I can search for that will get this working.

    PS : We haven't yet integrated anything into a live system yet, we just trying to get the message to the que on the other server. The databases are each completely empty

    Thanks in advanced 😀


    The Fastest Methods aren't always the Quickest Methods

  • Have you tried the Linked Server approach?

    http://msdn.microsoft.com/en-us/library/ms190479.aspx

    "Often speak with code not with word,
    A simple solution for a simple question"

  • We haven't. Will try that now. Thanks


    The Fastest Methods aren't always the Quickest Methods

  • I'm not sure if a linked server will help here (assuming you're talking about using service broker across servers).

    The best SSSB resource I know of is Rusanus blog[/url]. I'm confident you'll find a related article in the list....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • As Lutz has mentioned, if you are going down the service broker road, I believe you'll need to look at setting up routes to facilitate messaging between servers:

    Check this as well as the blog suggested by Lutz

    http://msdn.microsoft.com/en-us/library/ms166056.aspx

  • I am not sure if it works or not, but one of the big reasons to use service broker is in fact to get away from linked server hell. I would have to disagree with that recommendation.

    There's a step by step tutorial on setting up every generic use case of a SSB process in Books online. The thrid one is the one you want to look at ( conversation between two instances)

    Link to the online version of BOL's page for SSB tutorials is here:

    msdn.microsoft.com/en-us/library/bb839489.aspx

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

  • Thank you 😀


    The Fastest Methods aren't always the Quickest Methods

  • Hi All

    I think I'm getting closer. I'm getting the error below now on the target machine. When I google the error it's bringing up a lot of links on database miroring. I am a SQL Admin and a network Admin.

    Date 1/6/2012 12:41:13 PM

    Log SQL Server (Current - 1/6/2012 12:41:00 PM)

    Source Logon

    Message

    Service Broker login attempt by user 'NOLOGO\GORDONPC$.' failed with error: 'Connection handshake failed. The login 'NOLOGO\GORDONPC$' does not have CONNECT permission on the endpoint. State 84.'. [CLIENT: 10.100.1.61]

    I tried to execute

    GRANT CONNECT ON ENDPOINT::InstInitiatorEndPoint TO [NOLOGO\Gordon];

    as it was one of the links I came accross but received the following message

    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.

    One again thank you for your help


    The Fastest Methods aren't always the Quickest Methods

  • BinaryDigit (1/6/2012)


    ...

    I tried to execute

    GRANT CONNECT ON ENDPOINT::InstInitiatorEndPoint TO [NOLOGO\Gordon];

    as it was one of the links I came accross but received the following message

    Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.

    One again thank you for your help

    It might be a silly question but did you login as ‘NOLOGO\Gordon’ when issuing grants?

  • yes I did. I found out later and I think I might be right with this. My user was already associated with the objects as the owner so the error was maybe a bit miss leading. 🙂


    The Fastest Methods aren't always the Quickest Methods

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply