1
kudos
spam Kudos Remove

Conor vs. Statement Offsets

published 1004 days, 18 hours, 28 minutes ago posted by sasa 1013 days, 16 hours, 9 minutes ago
Saturday, August 22, 2009 3:34:35 PM GMT Thursday, August 13, 2009 5:54:03 PM GMT

As most of you have figured out by now, I work mostly on queries :).  One of the things that I often need to do is to get a statement out of a batch so that I can go look more closely at a query plan (and, in my case, the code that generates it).    I use the a query like this to read through a few DMVs and emit the text for the plan I want:select statementstartoffset, statementendoffset, statementtext from ( SELECTSUBSTRING(st.text, (qs.statementstart_offset/2)+1,...

category: Query | clicked: 2 | | source: blogs.msdn.com | show counter code
tags: DMV

No comments yet, be the first one to post comment.

To post your comment please login or signup