?
Solved

counters for index-tune in profile

Posted on 2011-09-07
10
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 21

Accepted Solution

by:
JestersGrind earned 2000 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
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 2000 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

Back Up Your Microsoft Windows Server®

Back up 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.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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 SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

752 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