Is this really the version you are looking for? Kentico Xperience 9 Documentation is no longer updated. Use the switcher in the header to choose your product version.
During the development of your MVC application you may want to see which SQL queries are run on page load. To debug the executed SQL queries you can use the Kentico.Glimpse integration package.
To use Glimpse in your MVC application, you need to install the related NuGet packages and turn Glimpse on:
The Glimpse extension is now enabled and you can use its web diagnostics features.
By default, the Kentico SQL tab in Glimpse does not show any information. You need to enable SQL debugging in the Kentico settings to populate the tab:
At this point the Kentico SQL tab in Glimpse shows the information about executed SQL queries. You can find the following information for each query:
Note: SQL queries executed by the MVC application are not logged in the Debug of the Kentico application.