Solved

counters for index-tune in profile

Posted on 2011-09-07
10
294 Views
Last Modified: 2012-05-12
what counters should be checked in profilers, so that you can feed into index tunin wizard?
0
Comment
Question by:25112
  • 5
  • 5
10 Comments
 
LVL 21

Accepted Solution

by:
JestersGrind earned 500 total points
Comment Utility
I don't know if there are necessarily counters to check.  My approach has always been to use the duration template in profiler and filter by however many milliseconds are considered too slow.  The procedures that take the longest generally are the ones that you should concentrate on.

Greg

0
 
LVL 5

Author Comment

by:25112
Comment Utility
do you not feed the trace into the tuning wizard?
0
 
LVL 21

Expert Comment

by:JestersGrind
Comment Utility
You can, but I usually address each issue that I find individually.

Greg

0
 
LVL 5

Author Comment

by:25112
Comment Utility
OK-

but in the case of having MS give high level index reco from a trace, what counters would the wizard expect to make a good reco?
0
 
LVL 21

Expert Comment

by:JestersGrind
Comment Utility
I would stick with the templates.  TSQL_Duration is probably the best one to identify long running queries.  The counters that you choose aren't that important.  You want to use profiler just to identify the queries that need the most attention.  Then you use that as the source for the index tuning wizard and it will analyze the workload.  This Microsoft article probably explains it better than I am.

http://msdn.microsoft.com/en-us/library/ff650692.aspx

Greg

0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 5

Author Comment

by:25112
Comment Utility
I am following you. But you would need most of tsql and stored proc counters, right? the other ones like locks, sessions, database counters won't be relevant to indexes?
0
 
LVL 21

Expert Comment

by:JestersGrind
Comment Utility
That's true.  I believe the SQL text data is what the index tuner uses as the workload to analyze.

Greg

0
 
LVL 5

Author Comment

by:25112
Comment Utility
>>That's true.  I believe the SQL text data is what the index tuner uses as the workload to analyze.

will it de-phrase each statement and make its own version of statements to test and suggest index?

for example, some textdata will start with 'SELECT' some others will have 'exec sp_execute' and some will have HTML tags like <SHOWPLANXL....some will have 'declare ....." etc
0
 
LVL 21

Assisted Solution

by:JestersGrind
JestersGrind earned 500 total points
Comment Utility
I believe it literally uses the statements that it captures.  

Greg

0
 
LVL 5

Author Comment

by:25112
Comment Utility
OK- thx.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now