Ask the Expert

Cannot get ASP pages to insert new data into an Access database

I am using IIS 5.0 on a Win2k server. ASP pages are working fine but I cannot get the ASP pages to insert new data into an Access database. The ASP pages can get data from the database and display it. In addition, there is nothing wrong with the ASP code. It works on another web server. So why can I not insert new data into a database through html-ASP pages?

    Requires Free Membership to View

If you're using NTFS, the first thing I would check is file permissions. Access is a file-based database system; so the users connecting through IIS must have Change NTFS rights to the .MDB file in order to update it. If users do not authenticate to gain access to the site, you need to grant Change access to the IIS anonymous user. If you're concerned about security, you should be! This weakness is the reason most sites rely on client-server database systems like SQL Server 2000.

If your Web server connects to the Access database via a network share, also verify that the share has been configured with Change access.


This was first published in May 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: