I use the Service Broker to execute a stored procedure asynchronously simultaneously, using such a queue:
CREATE QUEUE MyQueue WITH STATUS=ON , RETENTION=Off , ACTIVATION (STATUS=ON, PROCEDURE_NAME=MyProcedure, MAX_QUEUE_READERS=3, EXECUTE AS Self);
When I insert a new item into the queue (using a Dialog/Conversation), the stored procedure is not initiated unless the database is_trustworthy_on definition is set to on (=1).
There are some risks in changing the is_trustworthy_on definition from its default value (Off=0) to On,
and I wonder if there is a way to avoid it.
Thanks in advance.
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