C
cjb
Hi,
I originally posted this on public.data.ado, and someone nicely
informed me that this group is probably better suited to my question,
so here goes:
I have an mdb that I open using asp.net. I edit these pages and code
using FrontPage.
Everything works fine, but sometimes I make a mistake in my code, and
my page errors out before I close the DB connection. When this happens,
sometimes, the mdb becomes read only, as in when I open the mdb by
double clicking, I get "The database <name> is read-only" pop up.
If I try to edit via Front Page, I can, but FP cannot update the mdb,
because it is read only. (I understand all that).
Usually, this resolves itself auto-magically in a couple of hours. My
question is, how can I resolve it myself?
Also, I can go to a page with no errors, and run the page no problem,
code opens a db con, gets data, and closes it. I did this in the hope
that the IIS user close any locks they had on the db if I did a
succesfull con.close. This does not work.
Thanks for any help or advice.
I posted this in ado.net forum because I think it is my code causing
the
problem, I just can't fix it.
I'm interested in fixing this problem once it occures, because I don't
understand what is happening. Here is db that is read-only, and I can't
see any reason for it to be, nor can I revert it. Thanks again
I originally posted this on public.data.ado, and someone nicely
informed me that this group is probably better suited to my question,
so here goes:
I have an mdb that I open using asp.net. I edit these pages and code
using FrontPage.
Everything works fine, but sometimes I make a mistake in my code, and
my page errors out before I close the DB connection. When this happens,
sometimes, the mdb becomes read only, as in when I open the mdb by
double clicking, I get "The database <name> is read-only" pop up.
If I try to edit via Front Page, I can, but FP cannot update the mdb,
because it is read only. (I understand all that).
Usually, this resolves itself auto-magically in a couple of hours. My
question is, how can I resolve it myself?
Also, I can go to a page with no errors, and run the page no problem,
code opens a db con, gets data, and closes it. I did this in the hope
that the IIS user close any locks they had on the db if I did a
succesfull con.close. This does not work.
Thanks for any help or advice.
I posted this in ado.net forum because I think it is my code causing
the
problem, I just can't fix it.
I'm interested in fixing this problem once it occures, because I don't
understand what is happening. Here is db that is read-only, and I can't
see any reason for it to be, nor can I revert it. Thanks again