|
| |
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
chadb
Posts: 487 From: Kansas Status: offline
|
[Microsoft][ODBC Microsoft Access Driver] Operation mus... - 11/14/2006 17:31:30
I am getting this message quite often, my host resets the application, and it works. I think it is too many connections open, or not closing. I have checked my code, seems to be OK. 2 questions, how many connections to an access can be open and not closed, 2nd - is there an easy way to tell how connections are open? These connections are used maybe 10 times a day. Thanks Chad
|
|
|
|
chadb
Posts: 487 From: Kansas Status: offline
|
RE: [Microsoft][ODBC Microsoft Access Driver] Operation... - 11/14/2006 17:44:35
Here is some code, maybe it is wrong? myDSN = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("..\fpdb\db.mdb") set MyConn=server.createobject("adodb.connection") MyConn.open myDSN
|
|
|
|
chadb
Posts: 487 From: Kansas Status: offline
|
RE: [Microsoft][ODBC Microsoft Access Driver] Operation... - 11/14/2006 18:07:17
And I should only be using myconn.open once, right? I am also doing: str = "SELECT subemail FROM DB where ID =" & ID Myrs.Open str, Myconn,3,3 Should I also make sure I am closing Myrs?? I have some pages that have multiples of these lines (maybe that is incorrect?) example: str = "SELECT Name1 FROM DB where ID =" & ID Myrs.Open str, Myconn,3,3 Name1 = Myrs("Name1") myRs.close str = "SELECT user_id FROM DB where ID =" & ID Myrs.Open str, Myconn,3,3 userID = Myrs("user_id") myrs.close
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|