从页面查找数据库调用

时间:2012-10-09 07:49:14

标签: asp.net sql-server database performance sql-server-2008

我正在使用sql server 2008,网站位于asp.net 1.1

有没有办法找出 how many times database has been called from a page

What are the stored procedure called from the page?

What are the tables involved in a page load?

请建议我如何追踪这些?

1 个答案:

答案 0 :(得分:5)

最好的方法是使用SQL profiler,它将跟踪对数据库的每次调用。

您可能会看到以下文章:SQL SERVER – Introduction to SQL Server 2008 Profiler