開啟[SQL Server Profiler]>>[新增追蹤]
1.事件選取範圍→選取事件RPC:Completed及SQL:BatchCompleted
2.資料行篩選在DatabaseName新增資料庫名稱
在TextData新增declare @p1 int%select%update%delete%insert%
3.即可在結果尋找相關的SQL指令
easyflow gp, sql, ssms — 2017年4月14日
Made with ❤ and Hexo.js at Taiwan.