c++ - Cdatabase in MFC -


how use cdatabase object connect oracle database in mfc? please suggest tutorial or example

cdatabase uses ole db or odbc connection database.

uisng odbc, (nearly?) specific database server going contained in odbc connection definition rather client code -- could, example, switch odbc connection connect ms sql server 1 time, mysql next, , oracle third time, no modification of client code.

using ole db, little more of work ends in client, @kirill pretty right: of connecting 1 db server comes down connection string. vs appwizard can create @ least starting point connection string. big thing want/need change if you've given user-name , password appwizard, they'll embedded in connection string. that's unacceptable real code -- @ least password needs come somewhere @ least semi-secure (e.g., entered user not stored, @ least not permanently).


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -