Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order By Clause

Status
Not open for further replies.

ibra82

IS-IT--Management
Oct 3, 2005
3
0
0
DE
can some1 help me, im getting this error when i try to view certain data using a query: "System.Data.SqlClient.SqlException: The text, ntext, and image data types cannot be used in an ORDER BY clause"
thanks in advance
 
use LEFT(textfield,200) in the ORDER BY

it's unlikely that you will care if two rows with the exact same data in the first 200 characters of their text field are not in the correct sequence with respect to each other

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top