F
fitzron
I have some code that imports data into an Access 2003 DB from a Progress
9.1D DB using the Merant 3.60 32 Bit Progress SQL 92 v9.1D ODBC driver that
comes bundled with the Progress client.
The ODBC driver allows me to connect to the Progress database no problem,
but when I try to run a this query against the database:
SELECT ahfsDesc, ahfsCode, dFlag FROM ahfsCfg
it complains because the table or view does not exist. I checked into things
and this table is actually in a schema called "pub", so I corrected the SQL
as so:
SELECT ahfsDesc, ahfsCode, dFlag FROM pub.ahfsCfg
but when this query is run Access thinks we are looking for an Access
database, pub.mdb, in the Documents and Settings directory.
Does anyone know why the ODBC connection would be looking for the Access
database rather than the Progress schema. Does anyone know a connection
setting that can fix this?
Here the snippet of code I'm using:
connectStr =
"Provider=MSDASQL;DSN=RemotePharmDataTest;Uid=uid;Pwd=password;"
Set connection = New ADODB.connection
With connection
.ConnectionString = connectStr
.ConnectionTimeout = 10
.Open
End With
'Successfully opens connection
sqlStr = "SELECT ahfsDesc, ahfsCode, dFlag FROM pub.ahfsCfg"
Set rsDest = db.OpenRecordset(sqlStr, dbOpenDynaset, dbReadOnly)
(this line produces the error)
I have though of a solution and that was to create the necessary synonyms on
the Progress database, but the vendor appears reluctant to do this.
Any ideas would be appreciated.
Thanks in Advance,
Ron
9.1D DB using the Merant 3.60 32 Bit Progress SQL 92 v9.1D ODBC driver that
comes bundled with the Progress client.
The ODBC driver allows me to connect to the Progress database no problem,
but when I try to run a this query against the database:
SELECT ahfsDesc, ahfsCode, dFlag FROM ahfsCfg
it complains because the table or view does not exist. I checked into things
and this table is actually in a schema called "pub", so I corrected the SQL
as so:
SELECT ahfsDesc, ahfsCode, dFlag FROM pub.ahfsCfg
but when this query is run Access thinks we are looking for an Access
database, pub.mdb, in the Documents and Settings directory.
Does anyone know why the ODBC connection would be looking for the Access
database rather than the Progress schema. Does anyone know a connection
setting that can fix this?
Here the snippet of code I'm using:
connectStr =
"Provider=MSDASQL;DSN=RemotePharmDataTest;Uid=uid;Pwd=password;"
Set connection = New ADODB.connection
With connection
.ConnectionString = connectStr
.ConnectionTimeout = 10
.Open
End With
'Successfully opens connection
sqlStr = "SELECT ahfsDesc, ahfsCode, dFlag FROM pub.ahfsCfg"
Set rsDest = db.OpenRecordset(sqlStr, dbOpenDynaset, dbReadOnly)
(this line produces the error)
I have though of a solution and that was to create the necessary synonyms on
the Progress database, but the vendor appears reluctant to do this.
Any ideas would be appreciated.
Thanks in Advance,
Ron