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 

Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Par

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Xin Ge
Guest





PostPosted: Thu Sep 07, 2006 2:23 am    Post subject: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Par Reply with quote



Hello Everybody,

I am using Delphi 7, and try to update the database via ClientDataSet >
DataSetProvider(AllowCommandText is False) > IBQuery > Firebird. I got
error - SQL Parse Error: Parameter name expected.

Does anybody out there have any idea how to solve this?

Thanks,

Xin
Back to top
Bill Todd
Guest





PostPosted: Thu Sep 07, 2006 2:51 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote



If you are using TIBQuery then you are using the InterBase Express
components, not dbExpress. Note that InterBase Express is not tested
against and does not officially support Firebird (although some people
do use IBX successfully with FB).

Does the error occur when you open the ClientDataSet or when you call
ApplyUpdates?

What is the SQL statement in the IBQuery.SQL property?

--
Bill Todd (TeamB)
Back to top
Xin Ge
Guest





PostPosted: Thu Sep 07, 2006 3:15 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote



Thanks for your reply. You are right. The I am using InterBase not
dbExpress. I got error when call ApplyUpdates.
Back to top
Xin Ge
Guest





PostPosted: Thu Sep 07, 2006 4:50 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

I have to give up the IBQuery to use dbExpress. Sad
Back to top
Bill Todd
Guest





PostPosted: Thu Sep 07, 2006 5:05 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

Xin Ge wrote:

Quote:

Thanks for your reply. You are right. The I am using InterBase not
dbExpress. I got error when call ApplyUpdates.

If you want help you must answer all of my questions. What is the SQL
statement in the IBQuery.SQL property?

--
Bill Todd (TeamB)
Back to top
Bill Todd
Guest





PostPosted: Thu Sep 07, 2006 5:11 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

Xin Ge wrote:

Quote:
I have to give up the IBQuery to use dbExpress. Sad

dbExpress is just the components on the dbExpress tab of the palette.
Do you want to use the dbExpress components or is it the ClientDataSet
and DataSetProvider that you want to use? TClientDataSet and
TDataSetProvider are _not_ part of dbExpress.

--
Bill Todd (TeamB)
Back to top
Xin Ge
Guest





PostPosted: Thu Sep 07, 2006 10:53 pm    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

Yes. I am going to use SQLConnection and SQLQuery under dbExpress
palette, ClientDataSet and DataSetProvider under Data Access palette.
Back to top
Bill Todd
Guest





PostPosted: Fri Sep 08, 2006 12:58 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

Xin Ge wrote:

Quote:

Yes. I am going to use SQLConnection and SQLQuery under dbExpress
palette, ClientDataSet and DataSetProvider under Data Access palette.

Then you should change to the dbExpress components, get a dbExpress
driver that supports Firebird then see if you still have a problem.

--
Bill Todd (TeamB)
Back to top
Xin Ge
Guest





PostPosted: Fri Sep 08, 2006 1:33 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

That should work. we've done this before. We want to use IBQuery to
access Firebird at the beginning. That we don't need change lots code.

Anyway, thanks a lot
Back to top
Bill Todd
Guest





PostPosted: Fri Sep 08, 2006 2:10 am    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

Xin Ge wrote:

Quote:
That should work. we've done this before. We want to use IBQuery to
access Firebird at the beginning. That we don't need change lots code.

Anyway, thanks a lot

Why use IBQuery which does not officially support Firebird? Why not use
TSQLDataSet or TSQLQuery with a Firebird driver?

--
Bill Todd (TeamB)
Back to top
Xin Ge
Guest





PostPosted: Fri Sep 08, 2006 8:19 pm    Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Reply with quote

I got source code connect to IBDatabase, now we want to switch to
firebird. I am lazy. Doesn't want to change too much code.

--
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.