Sign In
Vijay
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
@@SERVERNAME
Features by Edition
GROUP ACCOUNT
RESOURCE DATABASE
Transaction Log
Archive
Archives
May 2009
(2)
April 2009
(2)
February 2009
(1)
January 2009
(2)
August 2008
(3)
September 2007
(2)
January, 2009
MSDN Blogs
>
Vijay
>
January, 2009
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Vijay
List all the statements in the Plan Cache along with the counts and CPU usage
Posted
over 3 years ago
by
Vijay Korapadi
1
Comments
SELECT t . [text] AS [Adhoc Batch or Object Call] , SUBSTRING ( t . [text] , ( qs . [statement_start_offset] / 2 ) + 1 , (( CASE qs . [statement_end_offset] WHEN - 1 THEN DATALENGTH ( t . [text] ) ELSE qs . [statement_end_offset] END - qs...
Vijay
Query to list all the databases in the order of CPU usage
Posted
over 3 years ago
by
Vijay Korapadi
0
Comments
USE master SELECT a . [value] AS [dbid] , ISNULL ( DB_NAME ( CONVERT ( INT , a . [value] )), 'Resource' ) AS [DB Name] , SUM ( qs . [execution_count] ) AS [Counts] , SUM ( qs . [total_worker_time] ) / 1000 AS [Total Worker Time (mSecs)] ...
Page 1 of 1 (2 items)