Viewing 15 posts - 16 through 30 (of 49 total)
Thanks Paul.
Agreed that this is not an optimal solution. But if I want to know where an error is, and quickly, this method does seem fastest for most IO related...
August 23, 2011 at 12:15 am
Hi Preet,
below is a version that uses only DMVs/DMFs, from section 5.9.1 of the book (http://www.amazon.com/SQL-Server-DMVs-Action-Management/dp/1935182730)
Thanks
Ian
SELECT
es.session_id, es.host_name, es.login_name
, er.status, DB_NAME(database_id) AS DatabaseName
, SUBSTRING (qt.text,(er.statement_start_offset/2) + 1,
((CASE WHEN er.statement_end_offset = -1
THEN...
June 3, 2011 at 9:45 am
Hi,
Your results suggest, for the passed parameters, only certain indexes are being used. I'm sorry I can't give a more detailed answer, but I don't know the specifics of system...
February 5, 2011 at 12:06 am
Hi,
I’m glad you liked the article. I’m wondering if the reason why the output doesn’t match the cached plan is because the plan contains information about all paths of execution....
February 4, 2011 at 11:59 am
Hi,
Nice article.
You can discover a lot more about DMVs in this forthcoming book http://www.manning.com/stirk. Chapter 1 can be downloaded for free and includes scripts for:
A simple monitor
Finding your...
December 3, 2010 at 12:51 am
Hi,
Nice article.
You can discover a lot more about DMVs in this forthcoming book http://www.manning.com/stirk. Chapter 1 can be downloaded for free and includes scripts for:
A simple monitor
Finding your...
September 8, 2010 at 8:03 am
Hi,
You might also want to look at “SQL Server DMVs in Action”, the first chapter is available free at: www.manning.com/stirk
Thanks
Ian
August 25, 2010 at 8:33 am
Hi,
Nice article.
You can discover a lot more about DMVs in this forthcoming book www.manning.com/stirk. Chapter 1 can be downloaded for free and includes scripts for:
A simple monitor
Finding your slowest queries
Find...
July 26, 2010 at 12:47 am
Hi Terry,
I think you've raised an important issue here. Sometimes, when we have planned the indexes, rather than blindly impliment the 'missing' index, we should revisit our query instead e.g....
April 9, 2010 at 6:15 am
Hi Jason,
I'm glad you liked the article.
There is an updated version of this script, without the deprecated objects, given in the book I am writing "SQL Server DMVs in...
April 6, 2010 at 8:59 pm
Hi dbowlin,
Have a look at http://www.manning.com/stirk I'm working on a book containing about 100 sample scripts similar to the one in the article. You can download the first...
April 2, 2010 at 8:47 am
Hi,
What index does it say is missing? You should be able to see it's definition in the cached plan.
Thanks
Ian
April 2, 2010 at 8:45 am
Hi,
What is the error you're getting?
Do you have access to the DMVs? You need VIEW SERVER STATE permission.
Thanks
Ian
April 2, 2010 at 8:43 am
Hi,
please see a previous discussion entry by jacroberts, he has the relevant code to prevent the divide by zero error.
thanks
Ian
September 28, 2009 at 12:38 pm
Hi,
yes the code uses sys.indexes, which is database specific, so it needs to run in each database separately.
Thanks
Ian
September 17, 2009 at 12:16 pm
Viewing 15 posts - 16 through 30 (of 49 total)