Solved

Delphi Database from code

Posted on 2011-09-21
2
565 Views
Last Modified: 2016-09-30
Hi at all, what's the best way to manage some database without use component ( from code)?
I can use a mysql database or a .mdb database and i use delphi xe.
I want create a class that manages some database without using the components.

Thanks.
0
Comment
Question by:WhiteSeed
2 Comments
 
LVL 22

Accepted Solution

by:
8080_Diver earned 250 total points
ID: 36574928
Why?!?!?!?! :-/

I suppose you could copy the code from the components into your code.

Alternatively, if you use a DBaseIV formatted set of files, you could recreate the DBaseIV handling in youor code . . . but that would be a royal pain in the whatever!  (I know because I've done it in Delphi, C++, COBOL, Turbo Pascal, and C#. ;-)

What do you have against using the components?
0
 
LVL 45

Assisted Solution

by:aikimark
aikimark earned 250 total points
ID: 36576764
I think my initial reaction to your question was similar to 8080's...Why?!?

Maybe that is because we don't know the context of your problem.  You've mentioned different database back-end formats.  Will the data structures be the same?

I think it will help us if you describe what data you are trying to access and what kind of data interactions you need to support with your Delphi application.  You may not need a database connection.  However, I'll leave that conclusion for later.
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
java continue statement 10 112
Convert a string into a TDateTime 5 50
When i run adoquery my application freezes 26 150
Graphics32 under Delphi 10.1 Berlin 2 34
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…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

929 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

14 Experts available now in Live!

Get 1:1 Help Now