Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i reduce the execution time of running a query of SQL SERVER 2005?
Posted

Use the SQL Profiler to create and change indexes for better performance :
http://msdn.microsoft.com/en-us/library/ff650699.aspx[^]

SQL Server Profiler Step by Step[^]
 
Share this answer
 
Comments
Maciej Los 9-Apr-13 2:28am    
Good idea, +5!
It depends on many factors:
- count of subqueries,
- count of variables,
- count of operations to do,
- count of JOINs,
- hardware performance.

Refer below links:
How to: Optimize SQL Queries[^]
Microsoft T-SQL Performance Tuning Part 3: Analyzing and Optimizing T-SQL Query Performance on Microsoft SQL Server using Query Optimizer Strategies[^]
7 performance tips for faster SQL queries[^]
The Seven Sins against TSQL Performance[^]
Comparing Query Performance[^]

Search CP knowledge base to find out more.
 
Share this answer
 
Comments
Mehdi Gholam 9-Apr-13 2:47am    
Complete! 5'ed
Maciej Los 9-Apr-13 2:53am    
Thank you, Mehdi ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900