Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Find out slow running queries for specific moduleFind out slow running queries for specific module
Previous
 
Next
New Post
10/5/2009 4:06 PM
 

Hi, I found a sql query on the internet which would help me to identify the slow running queries on my website. It's very  handy. But I want to make it module specific, like which module has started this query? Is this possible?

  DISTINCT TOP 10.TEXT QueryName, .execution_count AS ExecutionCount,

s

.max_elapsed_time AS MaxElapsedTime,

ISNULL

(s.total_elapsed_time / s.execution_count, 0) AS AvgElapsedTime,

s

.creation_time AS LogCreatedOn,

ISNULL

(s.execution_count / DATEDIFF(s, s.creation_time, GETDATE()), 0) AS FrequencyPerSec

FROM

sys.dm_exec_query_stats s

CROSS

APPLY sys.dm_exec_sql_text( s.sql_handle ) t

ORDER

BY

s

.max_elapsed_time DESC

 

 

SELECT

t

s

 
New Post
10/8/2009 6:17 AM
 

 I'm not sure how you would find a module automatically however if it is a custom module most module developers I know prefix all their tables and stored procedures so that they are identifiable as part of that module(also to avoid namespace conflicts.

hope that helps

John


John Nicholson
 
New Post
10/12/2009 10:47 PM
 

The module appears on too many pages on my site. I basically want to trace which tabId is the query started from. Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Find out slow running queries for specific moduleFind out slow running queries for specific module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out