 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Filippo F. Guest
|
Posted: Thu Mar 16, 2006 5:03 pm Post subject: newbie. Open a mysql database and view a table. |
|
|
Hello,
can anyone write me the simplest code that
- connect to a database of a MySQL server. (this step with dbexpress
seem simple, and works...)
- view a table of the database opened in a dbgrid.
I think it's simple... but no so simple for me!
thanks in advance!
Filippo |
|
| Back to top |
|
 |
paladin Guest
|
Posted: Thu Mar 16, 2006 8:03 pm Post subject: Re: newbie. Open a mysql database and view a table. |
|
|
Filippo F. wrote:
| Quote: | Hello,
can anyone write me the simplest code that
- connect to a database of a MySQL server. (this step with dbexpress
seem simple, and works...)
- view a table of the database opened in a dbgrid.
I think it's simple... but no so simple for me!
thanks in advance!
Filippo
|
the trick is getting all the connections made, from
SQLConnection -> SQLDS -> DSP -> CDS -> DS -> DBGrid
check out the stuff by
bob swart (eg. http://www.thedelphimagazine.com/samples/1540/1540.htm )
or cary jensen (eg. http://bdn.borland.com/article/0,1410,28876,00.html ) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|