BrianRudloff.com

.Net Development


My Resume
WebDOCPDF
RTFODTTXT
powered by emurse

Recent comments





SQL Server Index Issue - Causes "Order By" Error

I recently came across the following error after using the SQL Server 2005 Index Tuning Wizard:

A column has been specified more than once in the order by list.  Columns in the order by list must be unique.

I assumed the error was caused by a line in one of my stored procedures or triggers and I spun my wheels for quite some time looking for the root cause.  As it turns out,  the tuning wizard added several hypothetical indexes to my table that weren't displaying when I tried to view the indexes the traditional way (right clicking on the table and choosing 'manage indexes'.  To see them, I had to run the following stored procedure:  sp_helpindex ('table') 

After dropping all of the hypothetical indexes,  the issue was resolved.   

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: sql
Posted by Brian Rudloff on Saturday, February 02, 2008 2:51 PM
Permalink | Comments (99) | Post RSSRSS comment feed