How to see query history in SQL Server Management Studio

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

How to see query history in SQL Server Management Studio

文章 yehlu »

http://stackoverflow.com/questions/529 ... nt-studio

代碼: 選擇全部

SELECT t.[text]
FROM sys.dm_exec_cached_plans AS p
CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) AS t
WHERE t.[text] LIKE N'%something unique about your query%';
回覆文章

回到「SQL Server」