Home > Back-end >  SQLAPI connection is less than the Oracle database
SQLAPI connection is less than the Oracle database

Time:09-19

I want to use in QT SQLAPI++ Oracle database connection, but not every time, will throw an exception, check ErrText always () returns a "o", want to ask why this is,
# include "mainwindow. H"

#include
#include

#include

Int main (int arg c, char * argv [])
{
QApplication a(argc, argv);
The MainWindow w;

SAConnection con;

Try {
Con. Connect (" former ", "Scott", "tiger", SA_Oracle_Client);
QDebug () & lt;
/*
The rest of The tutorial goes here!
*/

Con. Disconnect ();
QDebug () & lt; }
The catch (SAException & amp; X) {
con.Rollback();
QDebug () & lt; }

w.show();
return a.exec();
}
  • Related