What are the steps you will take to improve performance of
a poor performing query?



What are the steps you will take to improve performance of a poor performing query?..

Answer / swapna

No indexes, table scans, missing or out of date statistics,
blocking, excess recompilations of stored procedures,
procedures and triggers without SET NOCOUNT ON, poorly
written query with unnecessarily complicated joins, too
much normalization, excess usage of cursors and temporary
tables.


Some of the tools/ways that help you troubleshooting
performance problems are: SET SHOWPLAN_ALL ON, SET
SHOWPLAN_TEXT ON, SET STATISTICS IO ON, SQL Server
Profiler, Windows NT /2000 Performance monitor, Graphical
execution plan in Query Analyzer.

Is This Answer Correct ?    13 Yes 1 No

Post New Answer

More SQL Server Interview Questions

Can we insert data into a view?

0 Answers  


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

0 Answers  


What is the advantage of specifying WITH GRANT OPTION in the GRANT command?

2 Answers  


Tell me the phases a transaction has to undergo?

0 Answers  


How to insert data with null values?

0 Answers  






whats the maximum size of view state??

0 Answers  


Explain encryption of entire databases without the need for application changes in sql server 2008?

0 Answers  


What is the difference between HAVING clause and the WHERE clause?

7 Answers  


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

0 Answers   ADP, iSoft,


What is a fill factor?

0 Answers  


In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp;

5 Answers   Infosys,


How will u test the stroded procedures and functions? difference between SP and Triggers

2 Answers   TCS,


Categories