-1

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.

2
  • I need to know why you are using Delphi 5? Is it legacy / maintenance development?
    – Marthinus
    Jul 22, 2011 at 4:40
  • yes i m doing maintainance and i m having only licence copy of delphi 5 professional. thnaks
    – naren
    Jul 22, 2011 at 4:54

3 Answers 3

4

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.

0
1

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.

6
  • -1 IMO this appears to be mostly an advertisment/PR post, not an answer to the question, which was already very well answered by RRUZ.
    – Gramps
    Jul 22, 2011 at 6:09
  • @Mikey I just wanted to show how this solution worked out, and provide another solution than ADO, which is buggy on Oracle. I've deleted the screenshot and source code sample - hope it will look more "neutral". There was a link to other components at Torry's: so it's NOT a PR post. IMHO this answer is still more precise and complete than RRUZ: e.g. the OP question is about replacing the BDE with ADO/OleDB, and RRUZ didn't speak about the (huge) size of the OleDB Provider installation. Jul 22, 2011 at 6:46
  • @AB- The OP didn't voice any concerns about the size of ado, nor did the OP show any interest in other solutions
    – Gramps
    Jul 22, 2011 at 6:54
  • @Mikey I suspect the OP didn't noticed the size of the OleDB Oracle's Provider. Which is a real concern: big and buggy. The BDE is deprecated, but works nice, even under Windows 64 - if you know how to install it on clients. 4 MB download instead of 660 MB... And I quoted other solutions available for Delphi 5, without nor the BDE nor ADO/OleDB. Jul 22, 2011 at 6:55
  • I removed my downvote - mainly because you removed the screenshots. I know you have a good reputation and provide valuable advice, not just posting ads for your stuff. Still, I think it would have been sufficient to say "If you're doing Oracle blobs, there are problems - see 'aURL'. Also, FYI the Oracle ADO provider is huge - besides ADO there are other options besides the BDE - see 'aURL';'myURL'; " etc. Just seems to take the thread off on a tagent by going into detail about stuff the OP didn't deal with at all. OK - I'm done ranting now - Peace be with you. :-)
    – Gramps
    Jul 22, 2011 at 22:30
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.