Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Stats of Data Collector from Profiler Trace

$
0
0

Hi,

I managed to successfully create a data collector. The collection set/item definitions are generated from the SQL Server Profiler tool. 

The trace definition is simple and is as follows.

SELECT @trace_definition = convert(xml, 
N'<ns:SqlTraceCollector xmlns:ns="DataCollectorType" use_default="0">
<Events>
  <EventType name="Stored Procedures">
    <Event id="10" name="RPC:Completed" columnslist="1,8,11,12,13,35" />
  </EventType>
  <EventType name="TSQL">
    <Event id="12" name="SQL:BatchCompleted" columnslist="1,11,8,12,13,35" />
  </EventType>
</Events>
<Filters>
  <Filter columnid="8" columnname="HostName" logical_operator="AND" comparison_operator="NOTLIKE" value="XXXX" />
  <Filter columnid="11" columnname="LoginName" logical_operator="AND" comparison_operator="LIKE" value="YYYY" />
  <Filter columnid="35" columnname="DatabaseName" logical_operator="AND" comparison_operator="LIKE" value="ZZZZ" />
</Filters>
</ns:SqlTraceCollector>
');

The data collection is scheduled and started. There are no errors shown in the logs.

I created this collection to store the execution time of various SQL statements executed by a particular user connecting from particular machine in a particular database? I am struggling to find out the SQL query to query Management data warehouse to see the stats. Could anyone let me know which table/view can be used to find out the stats? I can't find the data in snapshots.performance_counter_values table.

Thanks,

Sree


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>