一个简单的问题!
小弟初学PB,不知道在PB中怎样连接SQL数据库,请各位高手指点一二,小弟将十分感激..........
我的数据库显示连接上了,但是运行时并没有实现与数据库的连接,请问在应用程序中如何书写连接数据库的程序代码啊?另外请问下面这段代码是什么意思?
guo_gdi = create nvo_cst_gdi
g_api = create lht_nvo_api
g_path=guo_gdi.of_getcurrentdir() //当前系统路径
string ls_DSN, ls_pwd
ls_DSN=Profilestring('content.ini','system','DSN','')
ls_pwd=Profilestring('content.ini','secret','secret','')
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN="+ls_DSN+";UID=sa;PWD="+ls_pwd+"'"
connect using sqlca;
//Registrydelete( &
// "HKEY_LOCAL_MACHINE\Software\kingosoft\KingoEdu\YNCD"," ")
open(w_start)