Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

How to find where one can make good index Expand / Collapse
Author
Message
Posted Saturday, December 14, 2013 6:46 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 7:55 AM
Points: 47, Visits: 142
Hi,

I have pk and fk in the database , i want to find out where i can make some good indexes.(sqlserver 2005)

Questions

1) Is there any dmv which can help me in finding out where should i make indexs?

2) What counter i should use in profiler to find the above ?

3) If any other tool is availabe please tel me.

yours sincerely
Post #1522945
Posted Saturday, December 14, 2013 7:49 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:50 AM
Points: 42,451, Visits: 35,506
Maybe start by reading up on indexes

http://www.sqlservercentral.com/articles/Indexing/68439/
http://www.sqlservercentral.com/articles/Indexing/68563/
http://www.sqlservercentral.com/articles/Indexing/68636/



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1522947
Posted Monday, December 16, 2013 1:15 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 7:55 AM
Points: 47, Visits: 142
Thank you for links, i am brushing up .

Database Engine Tuning Advisor uses trace files, trace tables, Transact-SQL scripts, or XML files as workload input when tuning databases.

So please tel me which technique will be more accurate for identification of indexs?
like queries or trace etc. because i think some of them might be based on sampling.

If i can get pros and cons of each type of input to database engine tuning advisor then that would be help full
in deciding?


yours sincerely.
Post #1523117
Posted Monday, December 16, 2013 3:40 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:50 AM
Points: 42,451, Visits: 35,506
To be honest, the most accurate is to tune by hand, look at problematic queries, create indexes to support them. DTA's OK if you don't know how enough about indexes to choose good ones yourself, but you do have to test all its recommendations before implementing them.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1523141
Posted Tuesday, December 17, 2013 9:15 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 7:55 AM
Points: 47, Visits: 142
If i can get pros and cons of each type of input to database engine tuning advisor then that will be help full?
(Any link will be help full)
yours sincerely
Post #1523757
Posted Tuesday, December 17, 2013 9:50 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:50 AM
Points: 42,451, Visits: 35,506
You need a representative workload for DTA to be even remotely accurate, so that's a trace file (or table, makes no difference) that recorded as much of a business cycle as possible and feasible, or a representative sample thereof.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1523784
Posted Tuesday, December 17, 2013 10:00 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:11 PM
Points: 15,517, Visits: 27,898
I'd suggest getting a copy of my book. I go through all the information you're asking in great detail. The 2008 version is more applicable for your 2005 instance, but the 2012 version has more accurate information (there were some mistakes in the first version).

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1523789
Posted Friday, December 20, 2013 12:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 7:55 AM
Points: 47, Visits: 142
Thank u sirs ,

I will read those topics again from the books.

but if possible please write a word for use of (tsql vs trace) in Database Engine Tuning Advisor .

Finally i will check thing like query plan,dmo,dta.

If any thing else exist please tel me.

yours sincerely
Post #1524886
Posted Friday, December 20, 2013 12:36 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 2:50 AM
Points: 42,451, Visits: 35,506
rajemessage 14195 (12/20/2013)
but if possible please write a word for use of (tsql vs trace) in Database Engine Tuning Advisor .


I answered that one

GilaMonster (12/17/2013)
You need a representative workload for DTA to be even remotely accurate, so that's a trace file (or table, makes no difference) that recorded as much of a business cycle as possible and feasible, or a representative sample thereof.


Finally i will check thing like query plan,dmo,dta.


I'm not sure how the Database Management Objects (DMO), which is a programming interface for writing SQL Server management apps is going to help you identify indexes.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1524887
Posted Friday, December 20, 2013 4:26 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:11 PM
Points: 15,517, Visits: 27,898
rajemessage 14195 (12/20/2013)
Thank u sirs ,

I will read those topics again from the books.

but if possible please write a word for use of (tsql vs trace) in Database Engine Tuning Advisor .

Finally i will check thing like query plan,dmo,dta.

If any thing else exist please tel me.

yours sincerely


You can run a single statement through the Database Tuning Advisor. It will attempt to suggest indexes and statistics that my result in improvements in performance. But it's absolutely one at a time. Running the output of trace through the Database Engine Tuning Advisor results in lots of queries being checked. That's the difference.

Do not trust the output of the Database Tuning Advisor. It's wrong a lot of the time. Very wrong.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1524929
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse