Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2003, 07:33 AM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access dbs are ReadOnly under WinXP

Here is an excerpt from some poor soul in India that's having the same difficulty I am, however he was never given a solution. My situation is that I have a Win2k server at work that use during the day and a WinXP Pro machine I use at home in the evening. I package my asp website up on a usb drive and take it home every night and continue working on it there (same drive letters/paths etc...). However I can't add to or change anything via ASP on my home system. I can change the .mdb file via Access but not ASP. I get the message referenced below when I try to add/update at home on the XP machine. Has anyone else seen this?

:excerpt
I have checked with the property of the mdb file. It is not set to read only. Also. To see if ADO has some problem i worked with three versions of the file. I hav worked with the files office 97, office 2000 and office 2002 versions. But all gives the same error.
"Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
/addnew.asp, line 17"
in my code line 17 is "rs.addnew " where rs is the recordset object
 
Old September 9th, 2003, 01:47 PM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think your recordset might be a read only recordset. Could you post the code where you open the recordset?

what I'm most interested in seeing is something that starts with:

rs.open

I'm curious as to the cursor and locktype you have on it.

I used recordsets for a while. I don't use them the same way anymore.

I used to use the addnew method to add new records, etc. Now, I use a read only recordset (fast and efficient), and getrows on the recordset to load it into a 2 dim array. then dump the rs and close the connection. Loop through the array to get out what you need to display. To add or update, I use sql statements (usually insert, update or delete)

Since abandoning a recordset centric approach, everything is faster and easier.

Hope this helps..


 
Old September 9th, 2003, 03:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't think that the problem are your recordset.
I think that the anonymous user that IIS is using on your home computer. You should check that he has the right to read and write on the database.

Stéphane Lajoie
 
Old September 11th, 2003, 08:22 AM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hurkle, you are correct. I had to set NTFS permissions to the folder where the db resides for the Internet User.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read DBS file KAK724 VB.NET 2002/2003 Basics 0 November 22nd, 2006 05:38 PM
Transaction across 2 DBs joelchaconf Classic ASP Professional 0 March 9th, 2006 05:17 AM
COM access after WinXP SP2 Ned VB Components 0 August 30th, 2004 01:45 PM
help! DAO and controlling access dbs remotely scottie Access VBA 3 November 28th, 2003 05:19 AM
Where to find cloudescape dbs ??? aleksandarbgd Java Databases 1 August 25th, 2003 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.