How can i use microsoft access database in Qt?
-
I was trying the following but i get (success = false.)
@ QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DSN='';DBQ=C:/Users/pratik041/MyDocuments/pratik.accdb");
bool Success = db.open();
qDebug()<<Success;
@ what may be wrong in this? -
Build the ODBC plugin.
EDIT : you can start here : http://developer.qt.nokia.com/doc/qt-4.8/sql-driver.html#how-to-build-the-odbc-plugin-on-windows