Forum Moderators: open
i have a asp application that uses a ms access database but sometimes connections are left open and as a result i cannot compact and repair the database. a while ago i came across a script that basically kills all open connections whether active or inactive. but i cant seem to find this script anymore. can anyone tell me how i can do this? i want to create this script and execute it once a day at least that way less connections will be left open.
linda
any advice will be very much appreciated.
cheers
linda
I don't know the technical specifics, but Access will leave open pipes. After a certain number of opens and closes, the whole thing will shut down.
You don't need to reboot your computer though - just stop and start the IIS service. That will kill the open pipes and refresh your ability to query and update.
If you are doing multiple updates and other SQL interaction with the web, you really need a "server" type of database like mySQL or MSSQL.
I had the same problem about 3 years ago (search these very forums for my problems from then!) and they all went away when I installed mySQL.
These days I have 1000+ concurrent users making inserts, updates, deletes, addtables, drop tables, and of course selects. Without any drop in service.
how about if I delete all Unclosed DbSessions? will that be better than restarting IIS? if thats the case dont you think it would be a good idea to create a script and and schedule it to run evert hr or so to delete all Unclosed DbSessions?
cheers