Unix Technical Forum

SqlServer 7.0 ODBC error when querying with order by

This is a discussion on SqlServer 7.0 ODBC error when querying with order by within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Hi, we have SQL Server 7.00.961 running on Windows 2000. On the client side we use ODBC driver 3.70.09.61 ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:22 PM
Tomi Laamanen
 
Posts: n/a
Default SqlServer 7.0 ODBC error when querying with order by

Hi, we have SQL Server 7.00.961 running on Windows 2000. On the client
side we use ODBC driver 3.70.09.61 and an OCX component to retrieve rows
from a table having about 600 000 rows.

All works fine if we just retrieve rows without ordering them. If we put
order by clause to the query, we get the following error message:

-2147467259 unspecified error. This error comes almost immediately after
submitting the query.

If we modify the select clause so that we retrieve only 30 rows, we can use
order by without problem :

Select column1,... from table --
this works
Select column1,... from table order by column -- this doesn't
work
Select top 30 column1,... from table order by -- this works

If we use SQL Server Query analyzer all works fine. So this problem comes
probably from odbc driver ?


I wonder if somebody has faced this same problem ?


Regards, Tomi Laamanen




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com