I have a system I created on 2008 R2 which is using Service Broker to execute a specific procedure unsynchronously:
1. The user executes Procedure A with a parameter,
2. Procedure A begins a Dialog and sends a message with the parameter to a Queue which uses the PROCEDURE_NAME option to initiate the execution of Procedure B.
3. Procedure B runs and does several tasks. The user can trace its execution through a log table which is updated by the procedure.
Some time ago I was informed that the execution of Procedure A doesn't initiate the execution of Procedure B.
I didn't find any reason for the problem: the definitions of the database as Is_broker_enabled was OK, and sys.transmission_queue was empty.
I tried to Drop & Create all the objects (except the log table), and fortunately that fixed the problem.
Today I had a similar problem and I fixed it in the same way.
So far everything is fine and I have a solution, but I wonder:
1. What can be the reason for the problem?
2. Maybe I don't have to drop & create *all* the objects in such case?
1. The user executes Procedure A with a parameter,
2. Procedure A begins a Dialog and sends a message with the parameter to a Queue which uses the PROCEDURE_NAME option to initiate the execution of Procedure B.
3. Procedure B runs and does several tasks. The user can trace its execution through a log table which is updated by the procedure.
Some time ago I was informed that the execution of Procedure A doesn't initiate the execution of Procedure B.
I didn't find any reason for the problem: the definitions of the database as Is_broker_enabled was OK, and sys.transmission_queue was empty.
I tried to Drop & Create all the objects (except the log table), and fortunately that fixed the problem.
Today I had a similar problem and I fixed it in the same way.
So far everything is fine and I have a solution, but I wonder:
1. What can be the reason for the problem?
2. Maybe I don't have to drop & create *all* the objects in such case?
El castellano no es mi lengua materna. Discúlpenme por los errores gramaticales, y, si pueden, corríjanme en los comentarios, o por correo electrónico. ¡Muchas gracias! Blog: http://about.me/GeriReshef