according to limitations of query notification by using SqlDependency
,
How can we send query notifications using service broker SEND statement in a way that .net SqlDependency
can catch and parse it as a valid message it needs?
I mean something like this:
BEGIN DIALOG @conversation
FROM SERVICE SenderService
TO SERVICE N'SqlQueryNotificationService-8dc7e234-7e23-47ab-8d62-13e83a6ae262'
ON CONTRACT [http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]
WITH ENCRYPTION=OFF;
--- Send the message
SEND ON CONVERSATION @conversation
MESSAGE TYPE [http://schemas.microsoft.com/SQL/Notifications/QueryNotification]
(@msg);
what should be my @msg
and ENCRYPTION
?