Home > Ask the SQL Server Experts > Jeremy Kadlec - Performance Tuning Questions & Answers > How to speed up a composite nonclustered index-based query
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

How to speed up a composite nonclustered index-based query

Jeremy Kadlec EXPERT RESPONSE FROM: Jeremy Kadlec

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database development
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 26 December 2005
Here's the situation: A composite nonclustered index is created with XYZ table with the columns ordered, seqno,del_date to improve the query below:

SELECT * FROM XYZ WHERE del_date BETWEEN @datefrom AND @dateto AND orderid=@orderid AND seqno=@seqno
ORDER BY orderid, seqno,del_date

Now, after implementing the index, the query still responds very slowly. What other steps are needed to resolve the problem?



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Jeremy Kadlec - Performance Tuning
View query execution plan in SQL Server with this method
Adding non-clustered indexes to SQL Server columns
Change collation to SQL Server 2005 after upgrading databases
Is my SQL Server 2000 optimized?
What impact does changing one record have on the database?
Is there a maximum number of sockets that SQL can handle?
Why is my SQL Server frequently corrupted?
What's the best way to page SQL Server data results?
Can I change the date format when moving a flat file to SQL?
Performance differences between Windows and Linux-based databases

SQL Server performance and tuning
Top 10 SQL Server Tips of 2008
Tutorial: Performance tuning SQL Server via queries, indexes and more
SQL Server Management Studio 2008: New features, part 1
Tutorial: SQL Server indexing tips to improve performance
SQL Server virtualization pros and cons: Weigh the performance impact
How to configure storage in SQL Server DB with more writes than reads
Avoid cursors in SQL Server with these methods to loop over records
Solve SQL Server errors and more from the DBA trenches -- part 2
Tutorial: Learn SQL Server basics from A-Z
FAQ: Troubleshooting SQL Server Reporting Services

SQL/Transact SQL (T-SQL)
The sqlcmd utility in SQL Server
How to create a SQL inner join and outer join: Basics to get started
Avoid cursors in SQL Server with these methods to loop over records
Implementing security audit in SQL Server 2008
New datetime data types in SQL Server 2008 offer flexibility
Basic objects of T-SQL in SQL Server 2008
Using T-SQL data types in SQL Server 2008
SQL Server 2008 function types in T-SQL
Additional T-SQL operations in SQL Server 2008
Using DATEADD and DATEDIFF to calculate SQL Server datetime values
SQL/Transact SQL (T-SQL) Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
contiguity  (SearchSQLServer.com)
contiguous  (SearchSQLServer.com)
drilldown  (SearchSQLServer.com)
hashing  (SearchSQLServer.com)
hybrid online analytical processing  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SQL Solutions - SQL Database Design
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts