Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-07-19
1
Medium Priority
?
1,077 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 2000 total points
ID: 7177254
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
Suggested Courses

926 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