Next, you will want to handle the ServerDataChanged event. This will be raised if there is an error qith the notification or if the query has changed. If there was an error with the subscription, the Info property will indicate Invalid (in most cases). If the ServerDataChanged event is not raised immediately after query is called, then it is subscribed. You can determine this for sure by looking at the queues in SQL Server Management Studio.
Also, when creating queries, wildcards will not work and the schema names must be included in the queries.Won't WorkSELECT * FROM CustomersWill WorkSELECT cust_LastName FROM dbo.Customers
How To Use This SampleSimply run two instances of this sample once compiled. Change the value of the last or first name on one of the forms. You will then see a message box appear with the notification values and then refresh the dialog with the changes.