I have a nice application running for a while now... which does an awfull lot of ODBC calls to an Oracle database... All is fine and well...
Lets set the scene...
I am connecting using something like:
Then building the query i want to run on the connection
set qry = con.CreateQueryDef("", mySQL)
Then loading the query into a recordset...
Set rst = qry.OpenRecordset
and then handling it ... no problems to mention off (except maybe .... this one which i still have not been able to track down
)
Anyway, now i would love to store the information for additional use into my db. Opening another recordset and adding the data to the table. Except now after about 30 or so records the ODBC Connection plonks out,
for no appearent reason, timeout is set to 0, query is 100% OK
If i restart from the point i left off the application continues, but after another 30 or so it crashes again.... When i kill the saving of the ODBC data it works fine... I have checked, double checked and triple checked.... and am now finaly at a loss...
Could it be a problem with opening and closing to many recordsets?? I am thinking as i am writing this... anybody know??
Anybody have any other ideas?
BR & TIA
Lets set the scene...
I am connecting using something like:
Code:
Set wrkODBC = CreateWorkspace("myODBC", User, PW, dbUseODBC)
Set con = wrkODBC.OpenConnection("Connection1", , , _
"ODBC;DSN=" & DSNT & _
";UID=" & UserT & _
";PWD=" & PW & _
";SERVER=" & Server & _
";")
Then building the query i want to run on the connection
set qry = con.CreateQueryDef("", mySQL)
Then loading the query into a recordset...
Set rst = qry.OpenRecordset
and then handling it ... no problems to mention off (except maybe .... this one which i still have not been able to track down
Anyway, now i would love to store the information for additional use into my db. Opening another recordset and adding the data to the table. Except now after about 30 or so records the ODBC Connection plonks out,
for no appearent reason, timeout is set to 0, query is 100% OK
If i restart from the point i left off the application continues, but after another 30 or so it crashes again.... When i kill the saving of the ODBC data it works fine... I have checked, double checked and triple checked.... and am now finaly at a loss...
Could it be a problem with opening and closing to many recordsets?? I am thinking as i am writing this... anybody know??
Anybody have any other ideas?
BR & TIA
Last edited: