Reputation: 41
I have hosted an ASP.NET MVC application and configured Application Insight. All HTTP calls and SQL dependencies are logged in a text file. But, I am unable to log/get the SQL queries via Application Insight "commandName" parameter.
Can someone help me on this, please.
Upvotes: 4
Views: 1404
Reputation: 3126
If your application is hosted on Azure Web Apps, install Application Insights Extension. If hosted on any other VM, install Status Monitor on that VM. Then restart the application, and you should start seeing full SQL queries in Dependency command.
Upvotes: 3