PDA

View Full Version : Connecting with Firebird using QODBC driver



karollo93
6th December 2017, 19:30
Hey,
i have created local firebird database that i want to connect with. Unfortunately I can't make the connection.
Here is my code:


QString servername = "SYSDBA@localhost";
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
db.setHostName(servername);
db.setDatabaseName("D:\\baza\\BAZA.FDB");
db.setUserName("SYSDBA");
db.setPassword("masterkey");
bool ok = db.open();
qDebug() << ok;

I would appreciate any help.
Greetings.