How to use Service Broker, where and when we gonna use it.

Hi all,
I have task to implement SQL service broker for some insert statement, am bit confused where i start and how to implement like it may in Database or Server side(ASP.Net- c#), some where.
What the main advantage of using SQL Service broker?
Thanks,
Jai.

There is more than one place where Service Broker fits in. Generally, one can say that Service Broker permits you to implement things asynchronously. For instance, when a row is updated in a table a mail should be sent to someone. Rather than having a trigger
that sends the mail on the spot, the trigger could post a message on a Service Broker queue. Then there could be an activation procedure which reacts to this message and composes and sends the mail. This activation can be in the same database - but it can
also be on a completely different server which does not even have a direct connection to the actual server.
Activation can also be external. That is, there is an application that polls the queue, and again this could be on an other server, and when there is a message in the queue the application processes it.
Roger Wolter's book is an excellent introduction to Service Broker:
http://www.amazon.com/Rational-Server-Service-Broker-Guides/dp/1932577270/ref=sr_1_1?ie=UTF8&qid=1420025225&sr=8-1&keywords=Roger+Wolter+service+broker
Also, don't overlook Remus Rusanu's blog, which is an excellent resource for development patterns with Service Broker:
http://rusanu.com/?s=service+broker
Both Roger and Remus worked on the development of Service Broker, so they know what they are talking about.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How to know where and when my account logged in by...

    Recently my account was used by someone and sent out a misleading message, which cause a great trouble to me. I sensed the one was in purpose. Can I check where and when my account was used on that date? How? Please help !!! waiting for your reply...

    hi dominic.
    thanks for the help and the links.
    there is something terribly lacking in mac UI with respect to this unless i am missing something. if i do a search in Spotlight i see results and even when i see the file i want to know something about i have to OPEN FINDER which shows a ton of results (including hundreds if not thousands of eml file that i have to call mac and probably pay to find out why they are still showing up when prefs in Spotlight say to not show them...)  and only then can i actively select the file and have it show a file path at the bottom of the finder window.
    this is maddening. isn't there an option to show this information in Spotlight or to show this information WHEN THE FILE IS OPEN (apologies for the caps). i mean, if i have a file open, maybe i don't know /where/ it came from for some reason.
    for instance, if i am in a hurry and i open the file directly from Spotlight i can edit it and save it but i still have no idea where it resides on my hard drive. similarly if i open a file directly from spotlight and DUPLICATE a file and i want to save it as Version 2 - i have to - - - - well i guess i have to run another search for the file i just opened and am working upon in order to just save the dang file to the same location the original is in?
    i mean, the links are showing that i should open Get Info but i think i need to see the file in finder to run this command anyway since i have to right click on the file itself.
    maybe i am missing something but can't MAC OS just show me the FILE PATH at the top of the document like it does in Finder and also show me the FILE PATH in Spotlight? seems like the current implementation is like a big game of hopscotch for no good reason except the information is not shown to the (power) user.
    maybe i am missing a new feature in ML or in Mavericks or maybe i am using the wrong terms in the original title?
    THANK YOU

  • RT - PID Gains - where and when to use them

    The attached is example code for controlling a temperature chamber. The question is where and when to use PID Gains? This code looks as though the PID Gain is used for the variable/parameter temperature (i.e. the temperature is the controlled variable).
    So would there be just one PID Gain per controlled variable/parameter (temperature in this case) or would each device controlling temperature in the system get a PID Gain?
    In this example, the fan and lamp are controlling the temperature.
    Attachments:
    Exercise 8-1.zip ‏171 KB

    Russ_in_Louisville wrote:
    I came here for help as this is where NI pointed me in their failure. I did not come here to get my "mental model" attacked.
    Can you accept that your model of the system might be wrong, though? In this thread from a few weeks ago, multiple experienced users told you that what you had on your block diagram was an array, and yet you insisted - repeatedly - that what you had was a cluster. Your model was that the item on the block diagram was a cluster, leading to the question "how do I get an index display on it?" which made no sense, because the item was in fact an array. And, when you finally realized you were wrong, you couldn't even admit it or thank the people who pointed out your error - it just "turned out" that the constant wasn't what you thought it was. I am trying to tell you that you are making a similar error here by asking questions about the system that do not correspond to what the system actually does.
    "Parameter/variable" isn't clear. There is correct terminology. A PID controller has, as inputs, a process variable and a setpoint. The process variable is the parameter you want to control, such as temperature. The setpoint is the desired value of the process variable. Let's say you do have a temperature control system where there is both a heating system and a cooling system (again, not the situation in your sample code). The two systems could both be driven by PID and share the same setpoint and process variable. Some control options for this system:
    - a single PID controller with one set of gains, where a negative output drives the cooling system and a positive output drives the heater (or some variation on this), if both the heater and chiller have similar performance characteristics.
    - two PID controllers, each with a set of gains, one controlling the heating and one controlling the cooler.
    - a combination of these two: a single controller with gains that are selected based on the setpoint or process variable, which is known as gain scheduling. The advantage to a single controller is that you'd never have the two controllers fighting each other.
    You could also have a code that controls several similar processes (for examply, multiple identical temperature chambers). In that situation you could have a single set of PID gains but multiple controllers each with a different setpoint and process variable.
    So there's not a simple yes/no answer to when you need a separate set of PID gains or an additional PID controller. It depends on the characteristics and design goals of your system. Does that help?

  • I have just updated my i phone4 to ios5 and when ive gone to do an update its in my wifes apple id password settings how do i get it back to my apple id,thanks

    i have just updated my i phone4 to ios5 and when ive gone to an update its asking for my wifes apple id password how do i get it back to my apple id?
    thanks

    I have the same issue. The new address is fine when I use iTunes and on my iCloud account, but my iPhone has my old e-mail address and when I try to change it won't accept my new or old password to be able to do so.

  • Can anyone tell me where and when SAP IS life sciences training is offered?

    Can anyone tell me where and when SAP IS life sciences training is offered?

    Dear Hari,
    Pls explore following URL;
    http://www.sap.com/services/education/catalog/industry/lifesciences.epx
    Bye and all the best,
    Muralidhara

  • Someone has hacked my things, how do I turn wifi off, and when will it be safe to go back on?

    Someone has hacked my things, how do I turn wifi off, and when will it be safe to go back on? Also, do I need to reset everything? I have already changed passwords, covered my webcam, etc. Will they still have access to my computer?

    Could you explain what you mean by 'Someone has hacked my things'?
    What Mac do you have, with what version of OS X?
    What security do you have on your wi-fi?

  • HT4623 I appear to have lost the £15 redeemed voucher credit from my iphone.How do i find out where the money has gone to,Thanks

    I was bought a voucher for Xmas.I redeemed it and the balance showed as £15.A few weeks later the balance is at 0.03p and i have not bought anything.How do i find out where the money has gone to.
    Thanks

    Login to iTunes on your computer: Store>View My Apple ID>Purchase History.

  • Where and when to use generics?

    I'm brushing up on Java 5.0, I'm at 'generics' - I always hated c++ templates and knew they would catch up with me sooner or later...
    I have a fairly simple question about where and how to use them, conceptually.
    Am I correct in thinking that they are primarily concerned with items contained within a class and passed to a class?
    I'm trying to find a useful bit of code to write to practice with them and I've been half tempted to re-write something that uses lots of inheritance simply because I know the code in question needed a lot of casting, but my gut feeling is that generics doesn't have an awful lot to do with inheritance and re-jigging a class that relied on inheritance to use generics is barking up the wrong tree.
    I'd really appreciate some informed comments before I go trundling off down a path that is going to end with reams of pointless code.
    Thanks,
    Steve

    IMO the most useful feature of using Generics is compile time typesafety.
    Consider the pre-1.5 code for making a LinkedList that contains strings:
    LinkedList l = new LinkedList();
    l.add("Hello world!");
    l.add(new Integer(100));    // <---- runtime exceptionInstead, you can now write the code like this:
    LinkedList<String> l = new LinkedList<String>();
    l.add("Hello world!");
    l.add(new Integer(100));    // compile time exceptionIf you accidentally put the wrong type in a Collection you will get a nice compile time exception instead of a ClassCastException at runtime.

  • Interactive Report - How does it build the where claue when filtering data?

    I am curious how APEX builds the where clause when users add filters or does APEX simply filter the data?
    The reason I am asking, is for performance reasons, we have used inner selects to retrieve columns vs. using outer joins. However, I am just curious if we will suffer doing so when users add filters on these columns.
    Below are some details about our report:
    We have a report where we are joining many tables (25 tables) together. Initially, we created the report with outer joins and noticed that the cost of the explain plan was 2600 and the performance was marginal. We then started to remove the outer joins and replacing with inner selects and the cost and performance of the report improved. Currently, we have replaced 13 of the outer joins with inner selects and the cost is down to 650 and the performance is better.
    Below are examples:
    -- Using Outer Joins
    Select q.quote_id, q.quote_name, l.location_name, sr.sales_rep_name
    from quote q, location l, sales_rep sr
    where q.location_id = l.loation_id
    and q.sales_rep_id = sr.sales_rep_id
    -- Using Inner Selects
    Select q.quote_id, q.quote_name,
    (select location_name from location where location_id = q.location_id) location_name,
    (select sales_rep_name from sales_rep where sales_rep_id = q.sales_rep_id) sales_rep_name
    from quote q
    Just curious,
    Thanks,
    Brian

    Hi -
    If you switch on debug in Apex developer toolbar you can see the effect of user built filters on the sql that is actually executed for report.
    Good luck.

  • Where and When Should I Buy My 2GB Crucial RAM?

    hello all,
    I'm recently getting an iMac G5 and want to upgrade to 2GB with crucial memory. I'm wondering where or when I can find the best deals on them. If anyone knows it, please let me know. Thank you very much.
    (does this question violate the rule on this board? please ignore this post if it does)

    Buy it directly from Crucial.

  • IPhone 5C popping out of case, broke today and when charged repeatedly vibrates

    So my 5C has been making the popping noise recently, and today I dropped it and the screen turned weird colors, so I popped it back into place and then held the power and home buttons to reboot it. It hasn't turned on since, and when it is plugged in it won't stop vibrating. Any ideas or tips would be greatly appreciated!!

    Sounds like it has been damaged from dropping it. Take it into to your local Apple Store for repair/out of warranty/warranty replacement. You will most likely need to pay as dropping an iDevice is not covered by any warranty.
    Good Luck
    Pete

  • Where and when can I order iPhone 5 factory unlocked ?

    US release of Factory Unlocked iPhone 5; when, where, how long a wait ?

    Canadians can only buy factory unlocked iPhones which ate through service providers.
    Your service provider have plans for your devices to be used however Apple does not sell Cartier locked iPhones in Canada.
    Your rush to identify my error in stating "by law",
    misses the point of official unlocked avability in Canada without
    the Locked alternative which is only available in the USA
    untill Apples agreement with AT&amp;T for 2 year contract service
    has been met.
    Do you really think you did all your homework on
    this subject or has the cool aid hit it's mark ?

  • Where and when is JDBC driver needed?

    I'm just getting started with JDBC + MySQL. I'm writing applets. But where/when do I need to install the JDBC driver?
    1. Only at compile time and only on the machine where I compile my java code.
    2. On my webhosts server.
    3. On the client as some sort of plug-in. Meaning everyone who views my web page would have to download & install something.
    Thanks.

    The JDBC driver will be downloaded to the client
    machine in the codebase. The client has to havethat
    class in order to connect to the server. So itdoes
    add to the size of the download, it's just not
    permanently installed on the client machine.
    wrong.
    NO you are WRONG again!!!
    this is an APPLET not a SERVLET
    this means....
    (and really try to use your limited intelligence to read this next part carefully)
    that the JDBC connection is coming from the client's machine where the applet is running.
    this means that the applet will download the JDBC driver as part of what it needs to run.
    if this is was a servlet then obviously the driver would only be needed on the server....
    but it isn't
    it's an applet
    >
    The database must be running on same server thatthe
    applet came from, according to the sandbox
    restrictions on an applet. You might haveadditional
    security problems trying to connect to a different
    port. wrongwrong again...
    see above.
    >>
    I'd recommend against have an applet connectdirectly
    to a database. Have the applet connect to anobject
    running on the server that will do the database
    connections and queries on its behalf. - MODdont know what you mean by an applet connect directly
    to a database. how? the rest seems to be correct. to
    be more precise, however, i must add that you would
    need to use servlets in between an applet and the
    server. an applet cannot connect to machines other
    than the one that hosts it, yet the database can be
    anywhere as long as it is visible by the jdbc code
    residing on the hosting server. like you said
    correctly, the jdbc code does not have to be
    wodnloaded to the client machine, thus it adds
    nothing to the size.
    hope this helps.this almost contains some useful information...
    to the original poster.
    the stuff posted by duffymo is correct, stuff posted here (and elsewhere) by daFei is garbage and should be ignored.

  • Where and when does requisition id gets created when creating from MSS?

    My requirement is to have a custom logic on how to assign recruiters to a new requisition which is beeing created from MSS.  Once i fill out the form and send the form i get a ref nr for process. What i need is the requisition id as i want to create those recruiters in table HRP5131.
    So my question is: when and where is the requisition id beeing created?
    Any help will be appreciated.
    Thanks

    Hi Nahman,
    Check the following nodes
    SPRO--> Integration with other my sap.com components --> Business packages / Functional packages --> MSS (my SAP ERP) --> recruitement --> Define attributes for request scenario
    Select the recruiter logic type. You have an option to use custom logic also using a BADI. other than this there are 3 more options provided by standard sap.
    Hope this info helps. Let me know if u require further help on this
    Thanks
    G Raj

  • HT1430 After I updated my iPhone 4S to 6.0 I lost my Siri how do I get it back and when I reset

    I updated my iPhone 4S to 6.0 and I lost my Siri how do I get it back without loosing any lathing on my phone

    Hi Chetanya!
    I have an article here for you that can help you troubleshoot that issue and find your options. That article can be found right here:
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
    Seeing as you have already performed a restore, go ahead and perform the other troubleshooting steps, but unfortunately, the only option may be the one listed at the bottom of the page:
    Additional Information
    If you are still unable to turn Wi-Fi on, please contact Apple for support and service options.
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

Maybe you are looking for

  • Making An Event Two Lines Long In Month View

    Hey Everyone, I only use iCal in month view and most of the time when I enter an event that has a long name it shows up as two lines, so I am able to read it all. However, sometimes it only goes for a single line and cuts off the end of the event tit

  • Delete Button in SRM Administration Role

    Hello All, We have implemented the SRM7.0 (Extended Classic) and we have a requirement where the Delete button in the Shopping Cart Monitor to be hided only for the end users. The Delete(Button to delete the Shopping Cart row when we do the search) h

  • How to display a date in DD MONTH(SPELL) FORMAT?

    HI ALL, i need to display the date in DD mmm format ie if the date is 11.05.2007 then the datye will be displayed as 11 may...but this may will not be in english language it will be in italian..is there a function module to do this? Please suggest ho

  • How do I change cursor to hand pointer when hovering over image?

    Title says it all. I'm trying to get the hand cursor when user hovers over an image that's a link. Thanks!

  • PI7.11(PI7.1 EHP1) sapcpe.exe can not start after upgrade tokenerl  patch65

    Hi,   When I upgrade PI7.11 kernel (On Operator system WIN2003 server x64 64BIT) from patch level 62 to patch level 65   or higher level 67 or71   with JSPM,   after deploy SAP can't be started with error that sapcpe.exe can not start and in 'RED' st