[求助]怎样用代码实现PB与Oracle的连接啊?(通过.ini文件)
怎样通过读ini文件的相关信息来实现数据库的连接!?
string ls_database, ls_Server, ls_UserName, ls_PassWord
ls_database = 'database_test'
ls_Server = ProfileString( 'Accfix.ini', ls_database, 'Server', '@pcb' )
ls_UserName = ProfileString( 'Accfix.ini', ls_database, 'Username', 'accfix_g' )
ls_PassWord = ProfileString( 'Accfix.ini', ls_database, 'Password', 'accfix_g' )
// 設定
SQLCA.DBMS ="O73 ORACLE 7.3"
SQLCA.ServerName = ls_Server
SQLCA.LogId = ls_UserName
SQLCA.LogPass = ls_PassWord