LAG function – practical use and comparison to old syntax

Posted by Michael Zilberstein on SQL Blog See other posts from SQL Blog or by Michael Zilberstein
Published on Wed, 14 Mar 2012 06:33:24 GMT Indexed on 2012/03/20 5:36 UTC
Read the original article Hit count: 197

Filed under:
Recently I had to analyze huge trace – 46GB of trc files. Looping over files I loaded them into trace table using fn_trace_gettable function and filters I could use in order to filter out irrelevant data. I ended up with 6.5 million rows table, total of 7.4GB in size. It contained RowNum column which was defined as identity, primary key, clustered. One of the first things I detected was that although time difference between first and last events in the trace was 10 hours, total duration of all sql...(read more)

© SQL Blog or respective owner