<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk DB Connect: Is there documentation on how to create a dashboard and visualizations for long running SQL queries? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213724#M23015</link>
    <description>&lt;P&gt;Thanks ryanconnor. I have a sql query which gives me list of long running queries. Below is the query.&lt;/P&gt;

&lt;P&gt;Can I represent this output in line graph, if yes, how can I do it? Please help me&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT TOP 100
    qs.total_elapsed_time / qs.execution_count / 1000000.0 AS average_seconds,
    qs.total_elapsed_time / 1000000.0 AS total_seconds,
    qs.execution_count,
    SUBSTRING (qt.text,qs.statement_start_offset/2, 
         (CASE WHEN qs.statement_end_offset = -1 
            THEN LEN(CONVERT(NVARCHAR(MAX), qt.text)) * 2 
          ELSE qs.statement_end_offset END - qs.statement_start_offset)/2) AS individual_query,
    o.name AS object_name,
    DB_NAME(qt.dbid) AS database_name
  FROM sys.dm_exec_query_stats qs
    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) as qt
    LEFT OUTER JOIN sys.objects o ON qt.objectid = o.object_id
where qt.dbid = DB_ID()
  ORDER BY average_seconds DESC;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Jun 2016 09:24:46 GMT</pubDate>
    <dc:creator>pprakash2</dc:creator>
    <dc:date>2016-06-23T09:24:46Z</dc:date>
    <item>
      <title>Splunk DB Connect: Is there documentation on how to create a dashboard and visualizations for long running SQL queries?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213722#M23013</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;May I please know if there is any documentation to create dashboards, graphs etc, for desired SQL queries?  I've connected the app to an MSSQL database. I want to create a dashboard for long running queries. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213722#M23013</guid>
      <dc:creator>pprakash2</dc:creator>
      <dc:date>2016-06-20T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is there documentation on how to create a dashboard and visualizations for long running SQL queries?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213723#M23014</link>
      <description>&lt;P&gt;You might benefit from using the following add-on:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2648/#/overview"&gt;https://splunkbase.splunk.com/app/2648/#/overview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This should give you plenty of information regarding performance of your MSSQL database.  &lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 15:20:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213723#M23014</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-20T15:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is there documentation on how to create a dashboard and visualizations for long running SQL queries?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213724#M23015</link>
      <description>&lt;P&gt;Thanks ryanconnor. I have a sql query which gives me list of long running queries. Below is the query.&lt;/P&gt;

&lt;P&gt;Can I represent this output in line graph, if yes, how can I do it? Please help me&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SELECT TOP 100
    qs.total_elapsed_time / qs.execution_count / 1000000.0 AS average_seconds,
    qs.total_elapsed_time / 1000000.0 AS total_seconds,
    qs.execution_count,
    SUBSTRING (qt.text,qs.statement_start_offset/2, 
         (CASE WHEN qs.statement_end_offset = -1 
            THEN LEN(CONVERT(NVARCHAR(MAX), qt.text)) * 2 
          ELSE qs.statement_end_offset END - qs.statement_start_offset)/2) AS individual_query,
    o.name AS object_name,
    DB_NAME(qt.dbid) AS database_name
  FROM sys.dm_exec_query_stats qs
    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) as qt
    LEFT OUTER JOIN sys.objects o ON qt.objectid = o.object_id
where qt.dbid = DB_ID()
  ORDER BY average_seconds DESC;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2016 09:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213724#M23015</guid>
      <dc:creator>pprakash2</dc:creator>
      <dc:date>2016-06-23T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is there documentation on how to create a dashboard and visualizations for long running SQL queries?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213725#M23016</link>
      <description>&lt;P&gt;It might help if you can post a csv of the output of the above query for those of us who don't have an active SQL Server DB handy. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 13:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-Is-there-documentation-on-how-to-create-a/m-p/213725#M23016</guid>
      <dc:creator>tmuth_splunk</dc:creator>
      <dc:date>2016-06-28T13:46:24Z</dc:date>
    </item>
  </channel>
</rss>

