How to detect the origin of a query execution in SQL Server?

489 Views Asked by At

We have a SQL Server DB that is filled with records from two external applications that have the ability to execute queries against this DB. Both apps are black boxes for us, we don't have access to the code. We would like to know each execution of these queries from which application it is called. We have detected when and how often the queries are executed thanks to the Query Store, but we do not know the origin of each execution. Is there any way to find out?

0

There are 0 best solutions below