BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie. Open a mysql database and view a table.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Filippo F.
Guest





PostPosted: Thu Mar 16, 2006 5:03 pm    Post subject: newbie. Open a mysql database and view a table. Reply with 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
Back to top
paladin
Guest





PostPosted: Thu Mar 16, 2006 8:03 pm    Post subject: Re: newbie. Open a mysql database and view a table. Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.