Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to speed up this query?
Message
De
09/08/2012 14:52:24
 
 
À
09/08/2012 14:38:01
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01550135
Message ID:
01550233
Vues:
46
>>Frank,
>>
>>What I typically do when I run across a query that I believe is running slow, is to see if there are any table scans that are occuring. To see this, click on Query->Display Estimated Execution Plan with the query you are running. Look to see if there are any table scans or look to see the 'Cost' value for certain joins. IF there are table scans or a certain join has a high cost %, then you should be able to know where the problem lies in the poor performance Then you can add an index to the culprit or change a join condition and should see performance gains.
>>
>>HTH
>>
>>Bob
>
>Thanks Bob,
>
>I've always heard of the Execution Plan but never knew where to look for it!

Start SSMS and run New Query.
Then write your query and From the toolbar above look for the button "Actual Execution Plan".
Press it and run the query.
Then when the query is complete you will see a new tab with the execution plan.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform