BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Error creating cursor handle"

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
Antonio Felix
Guest





PostPosted: Fri Dec 12, 2003 2:49 pm    Post subject: Re: "Error creating cursor handle" Reply with quote



"Carlos Aguero" <carlos986 (AT) hotmail (DOT) com> wrote:
Quote:
Hi,
I am running a query from a c++builder6 application that connect to sql
server9.
my query is "insert into tablename values ('blah','blah')
as soon as I open the TQuery component I have this error
"Error creating cursor handle" Does anyone know what this is?
I have searched in the net but people don't say anything that is valuable
for me.
Please help.
Carlos



Hi Carlos,

You must use ExecSql instead of Open().
Insert Statements cannot create a cursor like Select Ones.

From the Help File
Call ExecSQL to execute the SQL statement currently assigned to the SQL property. Use ExecSQL to execute queries that do not return a cursor to data (such as INSERT, UPDATE, DELETE, and CREATE TABLE).

Note: For SELECT statements, call Open instead of ExecSQL.

HTH
Antonio

Back to top
Carlos Aguero
Guest





PostPosted: Fri Dec 12, 2003 3:17 pm    Post subject: "Error creating cursor handle" Reply with quote



Hi,
I am running a query from a c++builder6 application that connect to sql
server9.
my query is "insert into tablename values ('blah','blah')
as soon as I open the TQuery component I have this error
"Error creating cursor handle" Does anyone know what this is?
I have searched in the net but people don't say anything that is valuable
for me.
Please help.
Carlos


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.