Hi to all
First of all I apologize if this is inappropriate place to ask that question. If it is I hope you will redirect my question in the proper forum.
I am making a custom tracing program which should work for SQL Server AlwaysOn Availability group. It will be installed in every instance.
Therefore I have two questions:
- Is that any possibility to trace a listener? I would like to trace any queries that comes through listener because it will happens once in AG and I will not care about synchronization queries.
- If answer of this question is NO, how can I differentiate a query which is coming from listener or executing during synchronization?
Thanks for your answers