Service-Broker

Nel log di SQL Server trovo il messaggio "An exception occurred while enqueueing a message in the target queue...". Come posso risolverlo?

Davide Mauri

Utilizzando il Service Broker in modo diretto od indiretto (includendo anche lo sviluppo applicativo, ad esempio facendo uso della SqlDependency oppure della SqlCacheDependency in .NET 2.0) ci si può imbattere in questo errore:

An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "" does not exist, this type of principal cannot be impersonated, or you do not have permission.