- Sivaprakash BKR
- PowerBuilder
- Wednesday, 29 January 2025 12:32 PM UTC
Hello
Using PB 2022 R3 build 3356
Need to connect to SQL 2000 database to transfer data from there to Postges.
I used the following connection parameter to connect SQL 2000
// Profile Test_SQL2000
SQLCA.DBMS = "OLE DB"
SQLCA.LogPass = <*****>
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = "PROVIDER='SQLOLEDB',DATASOURCE='WEBMOBILE',PROVIDERSTRING='Database=Demo31;'"
Connect using SQLCA;
Messagebox('sqlca', String(Sqlca.SqlCode) + ' ' + Sqlca.SqlErrText)
I copied the above settings after connection the database from Database Profile, after successful connection
I hardcoded the above values in the open event of the application. I'm getting the following error, when run from the IDE.
Is there any settings I need to do, to enable OLE DB ?
Happiness Always
BKR Sivaprakash
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.