Engineering/__02. MSSQL (1) 썸네일형 리스트형 Query Log 조회 하기 SELECT TOP 100 creation_time, last_execution_time, total_clr_time, total_clr_time/execution_count AS [Avg CLR Time], last_clr_time, execution_count, SUBSTRING(st.TEXT, (qs.statement_start_offset/2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.TEXT) ELSE qs.statement_end_offset END - qs.statement_start_offset)/2) + 1) AS statement_text FROM sys.dm_exec_query_stats AS qs CROSS APPLY.. 이전 1 다음