Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB locked, could not save....

Status
Not open for further replies.

guineamation

Programmer
Jan 29, 2002
58
IL
Hi All,
when trying to update the DB via an admin panel, i get this error message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Could not save; currently locked by user 'admin' on machine 'W2K1920'.

/admin/inc_machina_edit.asp, line 107
-------------------------------------------------
Code:
Set con = Server.CreateObject("ADODB.Connection")
con.open conn_STRING

line 107: con.execute (MySQL)

i have some RecordSets open using the same connection string, is it a problem? what else can cause the DB to be locked for editing?
 
the database is located on a remote server of my hosting, cant open it directly and i dont imagine some one on the remote server opened it...
 
Yes your open recordsets could be locking tables/data and causing the error, or someone else could be accessing the dB via the app and locking data/tables.

Rhys
"There are some oddities in the perspective with which we see the world. The fact that we live at the bottom of a deep gravity well, on the surface of a gas-covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be"
DOUGLAS AD
 
if i set the locktype of the rest of the record sets to read only that should solve the problem? because now there is no lockType configured (default is read only)...
 
Is there any reason you need the recordsets open whilst you're updating?

Rhys
"There are some oddities in the perspective with which we see the world. The fact that we live at the bottom of a deep gravity well, on the surface of a gas-covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be"
DOUGLAS AD
 
thanks for the focusing, there was actually no reason for the recordsets to be open, i cleaned up the code a little but and now everything works ok....

Thanks Rhys666
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top