Solved

counters for index-tune in profile

Posted on 2011-09-07
10
297 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
ID: 36496797
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
ID: 36497545
do you not feed the trace into the tuning wizard?
0
 
LVL 21

Expert Comment

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

Greg

0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 5

Author Comment

by:25112
ID: 36499802
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
ID: 36502232
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
 
LVL 5

Author Comment

by:25112
ID: 36507518
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
ID: 36509912
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
ID: 36517493
>>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
ID: 36528908
I believe it literally uses the statements that it captures.  

Greg

0
 
LVL 5

Author Comment

by:25112
ID: 36542779
OK- thx.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

830 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