-
kusuma latha
- PowerBuilder
- Tuesday, 29 July 2025 10:26 AM UTC
Hi Team,
I'm currently working with the legacy PowerBuilder tool and have recently migrated the database connection from MSS to MSOLEDBSQL. The application successfully connects to the database, but there's an issue with one of the DataWindow functions: it connects, but fails to retrieve any data.
Interestingly, when I manually run the DataWindow within the PowerBuilder application, it retrieves data as expected. Also, executing the SQL query directly against the database returns the expected results.
However, when running the same through the application using the new MSOLEDBSQL connection, the DataWindow fails to fetch any data.
I'm including a snippet of the code below for your reference.
lds_student= CREATE zn_ds
lds_student.DataObject = 'd_phtadmin_studywork_studies'
lds_student.SetTransObject(invo_TR)
lds_student.retrieve()
zn_Ds is the datastore object and invo_tr is connecion and retrieve return in debig mode gets -1
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.