Solved

connection on mysql server using dbexpress from the borland c++ builder

Posted on 2002-07-19
1
1,014 Views
Last Modified: 2012-06-21
hi, i tried to get a tables data from a mysql server with dbexpress komponents. i used sql connect to connect to the server.all went fine.then i could get all tables and send the names to a listbox.not a problem so fare.but now my problem is, to get the fieldnames and values into a dbgrid. does anyone knows, whicn komponents i have to use? so that im able to get all the tables data in an dbgrid and be able to edit it there?
or does anyone knows a great site with some hints for my problem?
thx in advance
0
Comment
Question by:newbie0815
1 Comment
 
LVL 11

Accepted Solution

by:
vo1d earned 500 total points
Comment Utility
hi, try this:
insert to ur form:
TSQLConnection
TSQLClientDataSet
TDataSource
TDBGrid
----------
- TSQLClientDataSet->DBConnection needs to belinked to TSQLConnection
- TDataSource->DataSet needs to be linked to TSQLClientDataSet
- TDBGrid->DataSource needs to be linked to TDataSource
------
now in ur code,u only have todo:
SQLClientDataSet->CommandType = ctTable;
SQLClientDataSet->CommandText = <thetablename>;
SQLClientDataSet->Open();

thats all.
greets void

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

763 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