- Connie Dove
- PowerBuilder
- Friday, 20 September 2024 02:56 PM UTC
I have an application that is running great using PB 2022 Runtime 1892. I just upgraded it to use PB 2022R3 Runtime 3391. And not when it tried to connect to another database, it throws an error. Application runs fine in development on my PC. But when I move it to the server where the runtime files have been deployed I get this error.
Unable to connect to the webuser_db
SQLDBCode = 999
SQLErrText = DBMS NONE is not supported in your current installation.
I am using MS SQL Server 2017, with ODBC connections.
My connection string looks like this:
I have the settings in an INI file that the application pulls from
DBMS=ODBC
ServerName=Server1
WU_Database=webuser_db
WU_DBParm="ConnectString='DSN=webuserqa2017',OJSyntax='ANSI',CallEscape='No',DisableBind=1,AppName='FMMS REPORTS'"
In the code it does this
if NOT fileExists (gs_inifile) then
Messagebox ('', 'Incorrect ini file - ' + gs_inifile + '~r~nContact IS.')
halt
end if
to_webuser_db = CREATE transaction
to_webuser_db.DBMS = ProfileString (gs_inifile, gs_section, "DBMS", "NONE")
to_webuser_db.database = ProfileString (gs_inifile, gs_section, "WU_Database", "NONE")
to_webuser_db.servername = ProfileString (gs_inifile, gs_section, "ServerName", "NONE")
to_webuser_db.dbparm = ProfileString (gs_inifile, gs_section, "WU_DBParm", "NONE")
li_pos = pos (to_webuser_db.dbparm, 'DSN=')
// The login name & password are part of the DSN statement DSN='db;UID=name;PWD=pass',
to_webuser_db.dbparm = left(to_webuser_db.dbparm, li_pos - 1) + "UID=" + SQLCA.userid + ";PWD=" + SQLCA.LogPass + ";" + &
mid(to_webuser_db.dbparm, li_pos, len(to_webuser_db.dbparm))
to_webuser_db.Autocommit = TRUE
to_webuser_db.LogID = SQLCA.LogID
to_webuser_db.LogPass = SQLCA.LogPass
CONNECT using to_webuser_db;
return to_webuser_db.SQLCode
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.