I have simple application that uses dbExpress to connect Informix database.
If I compile it with TurboDelphi it works on both WinXP and Win2003.
When I use new Deplhi 2009 my app works ok on WinXP but do not start on Win2003.
No MessageBox with error, only info in EventLog:
Faulting application inf_dbexpress_test.exe, version 0.0.0.0, faulting
module kernel32.dll, version 5.2.3790.4062, fault address 0x0000bee7.
I think this is problem with dbExpress driver while my other app compiled with Delhi 2009 that uses
ODBC to connect Informix works on Win2003.
Anybody can test if Informix dbExpress drivers from Delphi 2009 works with Windows 2003?
Thanks for your help, but it do not work.
As for $INFORMIXDIR:
I reinstalled ClientSDK 3.5 and my $INFORMIXDIR is now:
c:\informix
(was c:\Program Files ...).
I can connect to DB from my app that uses ODBC.
But dbExpress app can not start, even in WinXP compatibility mode.
I have reported it in Delphi Quality Central as bug #67823:
Which turbo version do you have (the .net version or the Win32 version)? Do you have .net framework installed on 2003?
Hm maybe a strange suggestion, but one of the big differences introduces in Delphi 2009 is Unicode. All strings are now Unicode strings. Could that possibly be an explanation for the problem?
Related
I have made an application in Delphi with informix as a database. I am using BDE to connect with the database. It works fine on Win xp however this application doesn't run on Win7. As application is launched it stops. Can you plesae help. I tried this link but doesn't work:
http://www.willneumann.net/2008/09/configuring-bde-for-windows7/
The BDE is a very old product. It remains in delphi to be downwards compatible to old source.
On a new project I would never use the BDE.
On The BDE Alternatives Guide you find alternatives for the BDE.
May AnyDAC or SqlDirect is a good solution to connect to Informix.
I've used mOdbc package created by Konstantin Savelyev in the past to connect to Informix databases. It can be downloaded from here:
https://sites.google.com/site/robsosno/Home/downloads .
mOdbc is a set of components for Delphi 7 to work with Odbc with sources.
I don't know if it works with Windows 7. I think that it should.
Currently I'm not using this - in my company we've migrated from Delphi to C#.
I use Delphi 2010 Professional which did not come with the dbExpress driver for Firebird. If I start using the Firebird dbExpress driver written by Chau Chee Yang and then later upgrade to XE?? Enterprise (which comes with the Firebird dbExpress driver) will the code just work?
It lists support for delphi XE2 in the 34 version changelog
"Support Delphi XE2"
So it should work also you could ask on the dbxfirebird group for more info https://groups.google.com/forum/?fromgroups#!forum/dbxfirebird
Is it possible to deploy zero-dll executable that connects to Firebird using dbExprss? If so, how?
Cause I've tried to include
DBXFirebird but the executable always
needs dbxfb.dll.
Thank you all.
Up to Delphi 2006, you can link the dbExpress driver DLLs into your application by including the appropriate unit.
Since Delphi 2007, this is no longer the case, and you have to ship the driver DLL.
We are migrating from Delphi 6 to Delphi 2010,earlier we were using BDE engine to connect to Sybase Database from Delphi 6. We found out that Delphi 2010 does not support BDE.
We are trying with dbexpress but we are not able to catch the exception(raise error) thrown by Sybase.
Could you please let me know if there is any other driver except dbexpress to connect to Sybase Database from Delphi 2010.
Thanks.
Regards,
AS
You can use AnyDAC to connect to:
Sybase SQL Anywhere (AnyDAC native driver)
Sybase Adaptive Server (AnyDAC ODBC bridge).
I suspect your real problem is that you have the Professional version of Delphi rather than Enterprise. As far as I know, BDE can still be used with Delphi 2010.
With Delphi 6 the Professional version allowed connections to remote databases. Somewhere between Delphi 6 and Delphi 2010 that policy was changed.
Anyway, you really need to give up on BDE and move forward.
Edit: (jeroen)
The BDE for relational access (aka the BDE SQL Links technology) has been deprecated since 2002, about 2 years after the introduction of dbExpress in Kylix and Delphi 6.
You could try a workaround:
Install Delphi 6
Update BDE to the latest available version (there should be some updates on Embarcadero site, I hope)
Install Delphi 2010
IIRC the available SQL Links should not be removed (otherwise it would break the older version), and they should still work in Delphi 2010. But that's really a stopgap try.
Devart's UniDac can connect to Sybase without using dbExpress, but I never used it.
Sybase drivers for dbExpress is included in Enterprise version of Delphi. If that is not an option you can use dbGO (ADO) that is included in Professional.
You can try ZEOSLIB which contains SyBase connectivity, along with many other SQL dbs.
As far as I can see, it requires you to remove your Query/Table objects and replace them with its own Table and Query replacement objects, but then, so would moving from BDE to ADO/dbGo or dBExpress.
And you really should get the BDE out of your application. It's dead as a doornail.
I have an older application (written in Delphi 6) that has to be ported to Delphi 2006 (update 2). The application used to connect to an Interbase 6.x database using DBExpress, but the new version needs to connect to a Firebird 2.x Superserver.
Porting went OK, no real problems. But now, when I try to connect to the new Firebird server from the ported app, I get the following error:
Database error
Database Server Error: no current record for fetch operation
Running the same application compiled with Delphi 6, talking to the same Firebird server runs fine. The changes needed to compile the app in Delphi 2006 weren't related to the database code - all local library stuff. The application uses TSQLDataset en datasetproviders and clientdatasets.
Anybody has any idea how or why? Any changes to DBExpress that might cause this behaviour?
Thanks.
I don't think Delphi 2006 supports Firebird natively. Think you need to install FIBPlus
Heres a list of what is supported in Delphi 2006:
Old driver New driver Database and Version
dbexpinf.dll dbxinf30.dll Interbase 7.5
dbexpora.dll dbxora30.dll Oracle 10g
dbexpdb2.dll dbxdb230.dll db2 UDB 8.x
dbexpmss.dll dbxmss30.dll MSSQL 2000
dbexpmys.dll dbxmys30.dll MySQL 4.0.24
dbexpasa.dll dbxasa30.dll Adaptive Sybase Anywhere 9
dbexpase.dll dbxase30.dll Sybase 12.5
dbexpinf.dll dbxinf30.dll Informix 9.x
Extracted from Here
Until Delphi 2010, the built in DBExpress drivers officially never supported FireBird.
In practice, a lot of combinations never worked at all.
Either:
go for a DBExpress driver officially supporting FireBird (search google),
or move to another database middle layer (FIBPlus that James suggests is really good).
--jeroen
First of all, retry the same steps from a new, 1-form app (put SQLConnection, SQLQuery etc etc), fill with the SQL you want and try to connect.
I believe there's some connection parameter that changed between versions, since I've used D2006 DBexpress to access Firebird 2.x with success. But the application were not ported, but new projects.