-
Faheem Ashiq
- PowerBuilder
- Monday, 30 June 2025 09:39 AM UTC
Hi folks,
We are migrating one of our applications developed in Power Builder 12.6 to Power Builder 2022 R3. All PBL files were successfully compiled in PB22 R3, tried to run the application within IDE, it is running fine.
Then generated the PBD files (by generating run time libraries of all PBLs). Now when we run the exe file, it fails at login step.
Below are the SQLCA details:
SQLCA.DBMS = 'SNC SQL Native Client(OLE DB)'
SQLCA.DBParm = "Database='DatabaseName',Provider='SQLNCLI11',DelimitIdentifier='1'"
SQLCA.LogId = 'USERNAME'
SQLCA.LogPass = 'Password'
SQLCA.ServerName = gs_server
SQLCA.autocommit = gb_autocommit
gb_supervisor = false
Failure point is below query:
String ls_logininfo
SELECT LoginInfo INTO :ls_logininfo FROM ConfigTable USING SQLCA;
Below is the debug point I have added to see error details (it is just after the above statement):
MsgBox("Connection Check", "After Query: " + String(SQLCA.SQLCode) + ' - ' +SQLCA.SQLErrText)
Error Details: SQLSTATE = 42000
Microsoft SQL Server Native Client 11.0
Incorrect syntax near 'sqlHandle_01_B2299C37'.
Any help would be appreciated.
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.