﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / DMV for capturing all SQL Statements instead of just the last / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 01:58:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>Good to know. Thanks for posting back.</description><pubDate>Thu, 10 Jan 2013 10:26:14 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>Sorry, no just the defaults.</description><pubDate>Thu, 10 Jan 2013 10:10:01 GMT</pubDate><dc:creator>DanielP</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>[quote][b]DanielP (1/10/2013)[/b][hr]We had to set up Management Data Warehouse (MDW) to monitor.  I was able to trace the SQL Code that was causing the blocking by drilling down the Server Acitviy Report for that time frame.  There was a spike in 'locks', just had to drill down on it.[/quote]Sorry if I was not clear. I meant within MDW, is this info available to you via the information collected by the Default Data Collector or do you have some Custom Data Collectors setup as well that makes this research possible?</description><pubDate>Thu, 10 Jan 2013 10:07:51 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>We had to set up Management Data Warehouse (MDW) to monitor.  I was able to trace the SQL Code that was causing the blocking by drilling down the Server Acitviy Report for that time frame.  There was a spike in 'locks', just had to drill down on it.</description><pubDate>Thu, 10 Jan 2013 09:38:05 GMT</pubDate><dc:creator>DanielP</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>Nice. Thanks for posting back. Do you know if that was part of the default collection set, or a custom one you setup?</description><pubDate>Thu, 10 Jan 2013 09:30:29 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>Thanks.  I actually found it in our MDW report when drilling down on Locks.</description><pubDate>Thu, 10 Jan 2013 09:25:09 GMT</pubDate><dc:creator>DanielP</dc:creator></item><item><title>RE: DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>What you see with the DMVs is the input buffer, i.e. the last batch. If you did not have a Trace or Extended Events session running then the information is no longer available.</description><pubDate>Thu, 10 Jan 2013 05:44:59 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>DMV for capturing all SQL Statements instead of just the last</title><link>http://www.sqlservercentral.com/Forums/Topic1404899-391-1.aspx</link><description>Is there a way to get from a DMV not the last statement executed by a Session but all statements executed by that Session I am trying to capture what the Connection was running with blocking occurred earlier.   It currently isn’t blocking and our MDW didn’t capture any transactions at that time.</description><pubDate>Wed, 09 Jan 2013 10:43:08 GMT</pubDate><dc:creator>DanielP</dc:creator></item></channel></rss>