Created
September 4, 2014 08:48
-
-
Save hoangitk/9ba5e1c06b3f86b2d69b to your computer and use it in GitHub Desktop.
query data from sql profiler trace file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT TextData, Duration/1000/60 [Duration (m)], Reads, Writes, CPU, StartTime | |
| FROM fn_trace_gettable('F:\RestoreDB\HR 4.3.1\TSG01\TSG01_aCao.trc',1) | |
| where 1=1 | |
| -- and Duration > 10000 -- over 10s | |
| and textdata is not null | |
| -- and textdata LIKE N'%sp_replcmds%' | |
| order by duration desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment