Delphi XE5 DBExpress MS Access [duplicate] - delphi

being a dbExpress newbie I wonder if there is a dbExpress driver for Microsoft Access?

I think the only way to connect to Access is by using ADO. (TADOConnection).

I have had good results using the open source dbxoodbc driver for dbExpress.
The download has several demo projects that use access databases, so you should be able to get up and running in no time.
You can find it at http://sourceforge.net/projects/open-dbexpress/
I have only tried it with older versions of access, so I can't say for certain that it will work with office 2007 or newer.

You have to use TADOConnection, i havn't been able to find a 3rd party driver which supports the new dbexpres

dbExpress does not support msAccess natively,
But a quick google search gives a long list of drivers. Both free and paid.

Related

BDE Issue with Win 7

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#.

ADO components in delphi

I am currently using BDE components to connect to a database in Delphi 5 professional version. My problem is that BDE components need BDE Administator to run the application on another machine. So I am planning to buy a new version of Delphi which contains ADO components.
Question: Are ADO components also having issues like the BDE? Do ADO components need any specific setup to run applications on another machine?
Thanks for the help.
All the components have issues in some point, in the case of ADO is very stable, but you can have some specific problems with the providers (like the infamous not support for blob fields in ORACLE using the Microsoft provider) but certainly is more recommendable use ADO instead of the deprecated BDE. About the dependencies, ADO uses providers to connect to the RDBMS, most of them are installed by MDAC (Microsoft Data Access Components) which is included in most of the Windows versions. So in most cases you will not need install any addtional component, at least which you want use a provider not inluded in MDAC like MySql, Firebird or others.
Sounds like if you posted two times the (almost) same question... with more focus on ADO this time.
As was written in the previous question, if you attempt to connect to an Oracle database using ADO or OleDB, you'll find out that all OleDB providers are buggy for handling Oracle BLOBs: Microsoft's version just do not handle them, and Oracle's version will randomly return null for 1/4 of rows... So IMHO ADO or OleDB are not a serious option for accessing Oracle database. :(
And if your purpose is to get rid of the BDE installation, you'll find out that the Oracle's OleDB provider is quite huge and that the BDE is much light and better... A standard Oracle's client installation containing the OleDB/ADO provider (which is not installed in the "Light" version of the Oracle's clients), needs a .zip setup of about 660 MB...
On real database data, I found out our Open Source direct access to Oracle to be 2 to 10 times faster than the OleDB provider, without the need to install this provider (nor the BDE). You can even use the Oracle Instant Client provided by Oracle which allows you to run your applications without installing the standard (huge) Oracle client or having an ORACLE_HOME. Just deliver the dll files in the same directory than your application, and it will work.
Of course, this is full Open Source, and works from Delphi 5 up to XE. So when your project may upgrade to a newer Delphi version, it will work. You are not tied to non-Unicode Delphi 5-Delphi 7 version of Oracle components, as you can found on Torry's, e.g. but those components may help you get rid of the BDE installation for an existing project.
If you don't use BLOBs in your database, you can use ADO. In this case, my advice is to read this post, and use TADODataset, which is available in Delphi 5.
Ok Naren, since you are on Oracle you can use this Oracle driver DOA. We use it exclusively in our Delphi projects.
All our Delphi projects are on Delphi 7 but we are converting all of it to Delphi XE now. When using DOA you do need to install the Oracle client libraries on the client machine. The upside is speed and Oracle support, so the DOA drivers don't need to work on the most common command set like ADO needs to, so the Oracle support is brilliant.

Sybase Drivers for Delphi 2010

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.

dbExpress driver for Microsoft Access

being a dbExpress newbie I wonder if there is a dbExpress driver for Microsoft Access?
I think the only way to connect to Access is by using ADO. (TADOConnection).
I have had good results using the open source dbxoodbc driver for dbExpress.
The download has several demo projects that use access databases, so you should be able to get up and running in no time.
You can find it at http://sourceforge.net/projects/open-dbexpress/
I have only tried it with older versions of access, so I can't say for certain that it will work with office 2007 or newer.
You have to use TADOConnection, i havn't been able to find a 3rd party driver which supports the new dbexpres
dbExpress does not support msAccess natively,
But a quick google search gives a long list of drivers. Both free and paid.

Delphi components to use with SQlite

What components can I use to use SQlite database with Delphi 6?
Try Zeos Library at http://zeos.firmos.at/portal.php.
It works well with SQLite and others.
It is free and you get the source code too.
My Answer is AnyDAC in this case. We here currently use it and it works. Especially when you think that you get more than just what the database can do.
http://www.da-soft.com/anydac/
I'm using DISQLite3 in FeedDemon and recommend it highly.
I have successfully used ASqlite from http://www.aducom.com.
It's free, open source software.
The new DevArt UniDac components has Sqlite provider
Unidac isn't free, but it's highly recommend and has very stable and fast providers, support Oracle, MS SQL Server, MySql, Interbase,PostgreSql and now Sqlite.
We just validated our Synopse SQlite3 framework for Delphi 6.
You've got a whole Client/Server ORM framework, using SQLite3 3.7.3 for its data storage.
It's fast and light. And there is some User-Interface dedicated classes (Screen auto-generation, reporting with direct pdf export...).
See http://synopse.info/forum/viewforum.php?id=2
I use LiteDAC (components for SQLite by Devart) and like it much, because It allows to link the SQLite library statically into your application and has built-in SQlite encryption! So I recommend it highly
In Delphi XE7, FireDAC was integrated into Delphi.
Embarcadero purchased DA-SOFT in 2013, and FireDAC is their renamed AnyDAC.
Embarcadero plans to support and continue development of FireDAC, so it is now an excellent choice to be your Data Access Component for SQLite.

Resources