[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using delphi accessing database

Posted on 2004-09-21
3
Medium Priority
?
174 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Loops Section Overview
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

830 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