Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using delphi accessing database

Posted on 2004-09-21
3
156 Views
Last Modified: 2010-04-05
Hi everyone!

Does anyone here knows how to use ODBC with Delphi? Can anyone show me some source code examples? Im using delphi 3.0 (I guess this doen't matter with the version). In addition, does delphi also can access the ".dbf" file created by CLIPPER?

Thanks in advance
0
Comment
Question by:girlswants_me
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 12120105
>Does anyone here knows how to use ODBC with Delphi?
usual u can use BDE or ADO to access a database through ODBC

>In addition, does delphi also can access the ".dbf" file created by CLIPPER?
yes, but only the tables, no clipper-coding and no clipper dependend indexes

meikl ;-)


0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 125 total points
ID: 12122266
Delphi 3 doesn't have any default ADO support thus you need to use the BDE instead. The BDE for version 3 might not be able to handle the latest Clipper (DBase) databases correctly, though. However, you have an ODBC driver for Clipper, I assume. Therefore, you could connect from your application to the BDE, then to ODBC and finally to Clipper. The ODBC driver would have to handle all quirks.

A simple example? Drop a TDatabase component on your form. In Delphi 3 you can then double-click on it, I guess, to open a dialog to set up the database connection. You will have to set up the BDE correctly and also have ODBC correctly set up. It's not easy, though. And way too long ago for me to remember how it worked, exactly. Am using ADO for several years now, whenever I need database access.
0
 

Author Comment

by:girlswants_me
ID: 12176856
Thanks a lot
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question