Solved

Using delphi accessing database

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

18 Experts available now in Live!

Get 1:1 Help Now