Skip to main content

Abstract

With activation, you can specify that Service Broker starts a service program automatically as soon as a new message arrives at a queue. In this chapter, I’ll present activation in detail and show you how you can use it to implement great Service Broker solutions. In this chapter, I’ll cover the following:

  • Activation basics: Activation allows you to start a service program as soon as a new message arrives in a service queue. With activation, you can process received messages automatically without any additional coding efforts.

  • Internal activation: With internal activation, you have the ability to activate a stored procedure as soon as a new message arrives. As you’ll see, there are several options, as well as some issues you must be careful of.

  • External activation: External activation allows you to start an external application when a message arrives in a service queue. You can move long-running processing logic away from SQL Server and put it into separate processes for better performance and scalability.

  • Parallel activation: Normally, activated stored procedures are only started when Service Broker encounters receiving new messages. However, there are some tricks to starting more than one stored procedure simult aneously for message processing.

  • Troubleshooting activation: If you’re not careful during activation setup, you could encounter several problems. You’ll learn about common configuration issues introduced with Service Broker activation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Klaus Aschenbrenner

About this chapter

Cite this chapter

(2007). Service Broker Activation. In: Pro SQL Server 2005 Service Broker. Apress. https://doi.org/10.1007/978-1-4302-0306-3_4

Download citation

Publish with us

Policies and ethics