December 19, 2001 04:19 PM

Take It from the TOP

Rating: (0)
SQL Server Magazine
InstantDoc ID #23245
Get better query performance by using these TOP tips
Proper indexing can help speed up sorting operations. In "Tuning of a Different Sort," December 2001, InstantDoc ID 22927, I stressed that sorting (as when you use ORDER BY) applies only to the result set because the data in a relational database table has no specific order. Another T-SQL construct you can use in a query's SELECT list to limit the number of rows returned is the TOP clause. TOP is similar to ORDER BY in...

...This article is for paid Professional Members only.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

Has someone re-done the performance comparison of TOP and SET ROWCOUNT on 64-bit servers using SQLServer2005 or SQLServer2008? Some quick tests indicates that query that includes TOP and ORDER BY clauses perform extreamly poor as compared to SET ROWCOUNT.

payyan_s 2/4/2010 4:17:22 PM


You must log on before posting a comment.

Are you a new visitor? Register Here