2012-10-09 32 views
3

我正在使用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? 

請建議我如何跟蹤這些?

回答

5

最好的辦法是使用SQL profiler,它將跟蹤每次對數據庫的調用。

您可能會看到這篇文章:SQL SERVER – Introduction to SQL Server 2008 Profiler

+0

Thanks..I將運行SQL profiler.Just想知道,是不是要改變什麼數據庫,如果我跑探查? – James

+1

@Learner,不會改變數據庫中的任何數據或類似的東西。它會讓你知道所有針對數據庫服務器的請求/操作。您可以根據特定數據庫篩選結果 – Habib