C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

Query Optimize


Posted Date: 02 Nov 2009      Posted By: Johan      Member Level: Gold     Points: 1   Responses: 2




Hi,
How can i optimize my sql query. I'm using MS sql server 2005.

Any free tool for this?/

Plz give details.

With regrads,





Responses

Author: Lalji    02 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Twelve Tips For Optimizing Sql Server 2005 Query Performance

1. Turn on the execution plan, and statistics
2. Use Clustered Indexes
3. Use Indexed Views
4. Use Covering Indexes
5. Keep your clustered index small.
6. Avoid cursors
7. Archive old data
8. Partition your data correctly
9. Remove user-defined inline scalar functions
10. Use APPLY
11. Use computed columns
12. Use the correct transaction isolation level

more info
---------
http://blog.sqlauthority.com/2008/05/21/sql-server-2005-twelve-tips-for-optimizing-sql-server-2005-query-performance/

http://www.c-sharpcorner.com/UploadFile/john_charles/QueryoptimizationinSQLServer200512112007154303PM/QueryoptimizationinSQLServer2005.aspx



Author: Melchior    02 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

The SQL Server Performance depends on two factors. They are
Creation of Execution plan and
Execution of SQL queries based on the execution plan

So you need to pay attention on both factors.

Regarding Execution plan:
http://www.codeproject.com/KB/database/sql-tuning-tutorial-1.aspx

Regarding Query:

http://www.devshed.com/c/a/MySQL/SQL-Performance-and-Tuning-Considerations/3/



Post Reply
You must Sign In to post a response.
Next : Sending mail
Previous : Default value
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use