
Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Thanks for the reply.
> 1) When you send a message to another database in the same instance, the
> sender must impersonate a user on the receiver database to insert the
> message in the target queue. In order to do this impersonation, the
> initiator requires the trustworthy bit. When you send a message to a
> remote
> database without dialog security, the message comes in with no identity so
> the target service must accept connections from public. The SQL Security
> model doesn't allow this between databases in the same instance.
[AP]: Now it is clear.
> 2) Event notifications should require this also
[AP]: Do you mean that these settings are recommended for using Event
notifications with remote databases?
I use Event notifications without these settings and notification succeeds.
> 3) Try dropping the instance identifier from the return route. It sounds
> like you're using the wrong instance.
[AP]: Do you mean BROKER_INSTANCE = 'broker_instance_identifier'?
If it is so, we have dropped this optional parameter from the script for
target route but it did not help.
The error is the same.
What could you recommed us to resolve the problem?
Roger Wolter[MSFT] - 06 Jun 2006 17:36 GMT
You could try dropping the instance from the return route as I said instead
of from the target route (unless I misunderstand what you're saying). Trace
both endpoints and the connections to see if there are any other messages.
You might also try just sending a message to your service to see if it's
something unique to your event setup. Are you running SP1 on both systems?

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
> Thanks for the reply.
>
[quoted text clipped - 36 lines]
>
> What could you recommed us to resolve the problem?
Alex Petrovsky - 07 Jun 2006 12:55 GMT
I have found the reason. The 'broker_instance_specifier' parameter value
should be of the upper case in CREATE EVENT NOTIFICATION statement. It's
very strange because server has case insensitive collation.
> You could try dropping the instance from the return route as I said
> instead of from the target route (unless I misunderstand what you're
> saying). Trace both endpoints and the connections to see if there are any
> other messages. You might also try just sending a message to your service
> to see if it's something unique to your event setup. Are you running SP1
> on both systems?
Roger Wolter[MSFT] - 07 Jun 2006 15:35 GMT
Service Broker names which have to be sent over the wire must use binary
collation because there's no way to predict what the collation of the final
destination might be.

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
>I have found the reason. The 'broker_instance_specifier' parameter value
>should be of the upper case in CREATE EVENT NOTIFICATION statement. It's
[quoted text clipped - 6 lines]
>> service to see if it's something unique to your event setup. Are you
>> running SP1 on both systems?