Hi,
After years of things running OK, I am now having almost daily db corruption. I believe it's due to some sort of write-delay issues on our network, over which I have no control. For example,here's a code snippet that sometimes works and sometimes doesn't.
The queries re-fill the tables with new data. When it fails, it usually fails at "delete * from OppsPerFinalsProduct", because the DB I am referring to (DB is NOT the current db)has suddenly become corrupted.
RefreshNounsTested does a bunch of writes to DB also.
I think my best bet to solve this issue is to convert to SQL Server. However, I am RETIRING in 31.5 days (but who's counting???) and I'm pretty sure that's not enough time to take on that project. (My boss thinks the db is reacting to my endorphin levels... the higher they get, the less stable the systems become...)
So, short of that, is there a more robust way I can structure this to make this problem less likely?
One thing I'm wondering about: If I want to run a bunch of action queries on a foreign db, which is a more robust approach:
set MyDB=opendatabase(foreigndb)
mydb.execute(myquery)
OR
Link the tables in MyDB to the CurrentDb.
Add the queries to CurrentDB and run them from CurrentDB.
Any ideas sincerely appreciated.
After years of things running OK, I am now having almost daily db corruption. I believe it's due to some sort of write-delay issues on our network, over which I have no control. For example,here's a code snippet that sometimes works and sometimes doesn't.
WkSpace.BeginTrans
Trans = True
DB.Execute "delete * from latestrevmaster;", dbFailOnError
DB.Execute "latestrev2", dbFailOnError
WkSpace.CommitTrans
Trans = False
RefreshNounsTested
WkSpace.BeginTrans
Trans = True
DB.Execute "delete * from OppsPerFinalsProduct;", dbFailOnError
DB.Execute "oppsperfinalsproduct2", dbFailOnError
WkSpace.CommitTrans
Trans = False
The queries re-fill the tables with new data. When it fails, it usually fails at "delete * from OppsPerFinalsProduct", because the DB I am referring to (DB is NOT the current db)has suddenly become corrupted.
RefreshNounsTested does a bunch of writes to DB also.
I think my best bet to solve this issue is to convert to SQL Server. However, I am RETIRING in 31.5 days (but who's counting???) and I'm pretty sure that's not enough time to take on that project. (My boss thinks the db is reacting to my endorphin levels... the higher they get, the less stable the systems become...)
So, short of that, is there a more robust way I can structure this to make this problem less likely?
One thing I'm wondering about: If I want to run a bunch of action queries on a foreign db, which is a more robust approach:
set MyDB=opendatabase(foreigndb)
mydb.execute(myquery)
OR
Link the tables in MyDB to the CurrentDb.
Add the queries to CurrentDB and run them from CurrentDB.
Any ideas sincerely appreciated.