Solved

Using delphi accessing database

Posted on 2004-09-21
3
154 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 127
TServerSocket - file via sendbuf or Text via sendtext ? 1 43
Tembedded WB animatid gifs not animated on some pcs 2 73
update joined tables 2 31
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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now