Page 1 of 1

Simple Console Example?

Posted: Tue 31 Mar 2009 13:46
by dirk_kaiser
I'm test driving myDAC out before purchasing. From my understanding, myDAC can be used from a console app. Can anyone provide me a simple console example of myDAC connecting to a MySQL database and executing a SQL command? I don't see any examples anywhere on how to do this.

Thanks,

Dirk

Posted: Wed 01 Apr 2009 14:21
by Dimon
You can use MyDAC component in console applications in the same way as in the Windows applications.
To connect to a MySQL database you should use TMyConnection. To execute a SQL query you can use TMyCommand or TMyQuery.
You can see how to work with MyDAC components in the MyDacDemo.