Hi Stefan,
Now I am using the following code to relink the oracle tables during my
application startup
With CurrentDb
.TableDefs.Append .CreateTableDef("TESTBRANCH", 0, "DB_BRANCH",
"ODBC;DSN=CAS;DBQ=" & myDBQ &
";DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
End With
But when I quit and restart the application, the application by default
connects to the previous dbq, though mydbq dynamically changes depending
upon the user's choice.
I every time need to click Tools > Database Utilities > Compact and Repair
Database to take the news DBQ or connection string.
Is there any way i could clear the cache or close the connection properly?
Stefan Hoffmann said:
hi Raj,
Sub test()
With CurrentDb
.TableDefs.Append .CreateTableDef("TESTBRANCH", 0, "DB_BRANCH",
"ODBC;DSN=CAS;DBQ=CAS1.WORLD;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0;")
End With
End Sub
In oralce i have synonums for all tables, does it causing any problems?
Maybe, synonyms can be schema bound
CREATE [PUBLIC] SYNONYM [schema.]synonym
FOR [schema.]object [@dblink]
so you need to specify this schema.
mfG
--> stefan <--