NCS Logo - Click for home page Northstar Developer Center
Platforms
All Platforms
.NET Framework (1.x - 4.x)
Active Server Pages
ASP.NET
C#
SQL Server
VB.NET
Visual Basic

Keywords
.NET Data Types
.NET E-mail
.NET Events
.NET Functions
.NET Object Programming
.NET System.Configuration
.NET System.Diagnostics
.NET System.IO
.NET System.Net
.NET System.Net.Sockets
Active Data Objects
ASP Architecture
ASP Black Belt
ASP Built-in Functions
ASP Built-in Objects
ASP Debugging
ASP Performance
ASP Security
ASP Syntax
ASP.NET Authentication
ASP.NET Controls
ASP.NET Data Access
ASP.NET Features
ASP.NET Master Pages
ASP.NET Page Events
ASP.NET Security
ASP.NET ViewState
Atom
Certifications
COM, DCOM, COM+
Data Access
E-Mail
Errors
Exporting Data
HTML Tips
IIS
Object-Oriented Programming
RSS
SQL
Uncategorized ASP Tips
VB API Programming
VB Forms
VB Syntax
XML

Book Support
Visual Basic 6 Bible
ASP Bible
ASP Weekend Crash Course
ASP.NET At Work
Creating Web Services

Updating an Access Database

Written by Eric Smith, Northstar Computer Systems LLC

A user asked me why, when he attempted to upload an Access database in place of another one, he got errors indicating that the file is in use by another process. Access is a file-system database, which means that everything dealing with the database is in one file. The problem is that if someone is using a web page that uses the database, the web server locks the database file open. The only safe time you can replace it is if no one is using the database. This generally means stopping the web server long enough to replace the database.

Instead of this method, I prefer to create a user interface for updating/modifying/deleting data in the database, no matter which database I’m using. It prevents this problem completely with Access since if I’ve got a UI, I don’t need to fix the database directly. The exception would be a database structure change (new tables, queries, etc.). In this case, I stop the web server, make the changes, and then start the web server again. I try to avoid making structural changes on the fly, but on occasion, you have to do it.

Keywords: [ Uncategorized ASP Tips ]

Publication Date: 6/1/2000