"Cursor not returned from Query" from SELECT statement

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
esasse
Posts: 47
Joined: Tue 27 Nov 2007 19:08
Location: Brazil

"Cursor not returned from Query" from SELECT statement

Post by esasse » Thu 17 Jun 2010 21:24

I have some valid SELECT statements that when I send to MSSQL2005 sometimes return the error "Cursor not returned from Query".

It happens with different queries that work fine 99% of the time, and the only thing they all have in common is the use of several joins and some group by. Pretty standard queries.

How can I trace this and find out what's wrong?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 18 Jun 2010 08:48

This error occurs when a query that doesn't return recordset is executed, like INSERT, DECLARE and etc.
Try to use SQL Server Profiler to check what query is executed when the error occurs.

Post Reply