I have an application running in powerbuilder 9 using a microsoft access database, here is the connection code I use in my main window open event
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=DB1',ConnectOption='SQL_OPT_TRACEFILE,D:\development\powerbuilder9\latin\SQL.LOG'"
I need to have this connection settings in a .INI file and this is what I have done I modified the open event script for my main window and put this
SQLCA.DBMS=ProfileString("DB1.INI","Database","DBMS"," "
SQLCA.DbParm=ProfileString("DB1.INI","Database","DbParm"," "
and I created a DB1.INI file in my working directory with these lines
SQLCA.DBMS="ODBC"
SQLCA.DBParm="Connectstring='DSN=DB1'"
When I try running the app I get an error message saying
"DBMS is not supported in your current installation"
Should I have the .INI file at the root of my application folder(not powerbuilder's folder, but the application I am writting)?
Any help is appreciated.
Thanks
SQLCA.DBMS = "ODBC"
SQLCA.AutoCommit = False
SQLCA.DBParm = "ConnectString='DSN=DB1',ConnectOption='SQL_OPT_TRACEFILE,D:\development\powerbuilder9\latin\SQL.LOG'"
I need to have this connection settings in a .INI file and this is what I have done I modified the open event script for my main window and put this
SQLCA.DBMS=ProfileString("DB1.INI","Database","DBMS"," "
SQLCA.DbParm=ProfileString("DB1.INI","Database","DbParm"," "
and I created a DB1.INI file in my working directory with these lines
SQLCA.DBMS="ODBC"
SQLCA.DBParm="Connectstring='DSN=DB1'"
When I try running the app I get an error message saying
"DBMS is not supported in your current installation"
Should I have the .INI file at the root of my application folder(not powerbuilder's folder, but the application I am writting)?
Any help is appreciated.
Thanks