| View previous topic :: View next topic |
| Author |
Message |
Xin Ge Guest
|
Posted: Thu Sep 07, 2006 2:23 am Post subject: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL Par |
|
|
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
|
Posted: Thu Sep 07, 2006 2:51 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Thu Sep 07, 2006 3:15 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Thu Sep 07, 2006 4:50 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
I have to give up the IBQuery to use dbExpress.  |
|
| Back to top |
|
 |
Bill Todd Guest
|
Posted: Thu Sep 07, 2006 5:05 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Thu Sep 07, 2006 5:11 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
Xin Ge wrote:
| Quote: | I have to give up the IBQuery to use dbExpress.
|
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
|
Posted: Thu Sep 07, 2006 10:53 pm Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Fri Sep 08, 2006 12:58 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Fri Sep 08, 2006 1:33 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Fri Sep 08, 2006 2:10 am Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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
|
Posted: Fri Sep 08, 2006 8:19 pm Post subject: Re: Using Delphi 7/DatasetProvider/IBQuery/Firebird, get SQL |
|
|
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 |
|
 |
|