2015년 12월 18일 금요일

MSSQL 쿼리 기록 조회...

어떤 쉐리가 데이터 지웠는데.. 안했다고 잡아 때는 중... 잡아서 고문해주마!!!

으흐흐흐흐흐흐흐흐흐!!!!





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 sys.Dm_exec_sql_text(qs.sql_handle) AS st 
ORDER  BY total_clr_time / execution_count DESC; 

댓글 없음:

댓글 쓰기

[PS2] 악마성 2개 클리어 일지..

https://www.youtube.com/watch?v=HwFIH--7UkM PS2 버전 악마성 시리즈 전부 클리어.. 순수의 비가는 카메라 구도 조정이 전혀 안되서.. 정말 어려웠는데.. 어둠의 저주는 전작의 여러 부족한 부분을 개선하여.. 쾌적하...