This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use ServiceBrokerDemo | |
GO | |
Set NoCount On | |
-- Clear out any previous results of processing the queue's messages. | |
Delete dbo.T_QueueProcessingResult | |
RaisError ('Adding messages to the queue ...', 0, 1) With NoWait | |
Exec dbo.Proc_Queue_Send_Message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use ServiceBrokerDemo | |
GO | |
Alter Queue Queue_Demo | |
-- Now process the queue automatically. | |
With Activation ( | |
Status = On, | |
Max_Queue_Readers = 1, | |
Procedure_Name = dbo.Proc_Queue_Process_Messages, | |
Execute As Owner) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use ServiceBrokerDemo | |
GO | |
Set NoCount On | |
-- Clear out any previous results of processing the queue's messages. | |
Delete dbo.T_QueueProcessingResult | |
RaisError ('Adding messages to the queue ...', 0, 1) With NoWait | |
Exec dbo.Proc_Queue_Send_Message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use Master | |
GO | |
If Not Exists (Select 1 From sys.databases Where (Name = 'ServiceBrokerDemo')) | |
Begin | |
Print 'Creating database ...' | |
Create Database ServiceBrokerDemo | |
End | |
GO |