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 December 1st, 2004, 08:26 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default can't update and addnew data, help plz

hey there, i'm newbie here =)
hey i what would like to know, is there anybody know resolution for my problem

i'm using access for the database, then i write my own asp codes for updating or make a new data for the table.
but when i run into it, it seems has an error

it says, " error.....the object or database is read only"
but i'm sure that my code has right code, coz i just write down the codes from wrox book.

thx with u guys companion
bye

 
Old December 1st, 2004, 08:55 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  Check the virtual folder permissions.


-------------
Rajani

 
Old December 2nd, 2004, 11:17 AM
Authorized User
 
Join Date: Dec 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to abelconde
Default

Check virtual folder permission in
Internet Information Server!

 
Old December 2nd, 2004, 12:27 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

What are the security permissions on the .mdb file - can IUSR_[yourmachinename] (or everyone etc.) read/write from/to the file?

Cheers,

Chris

 
Old December 2nd, 2004, 12:46 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey, i uncheck it with right on it's directory,select property, and then uncheck the "read-only" button isnt it?>
but it still check it, even i already uncheck it.
-_-;
am i wrong?

 
Old December 2nd, 2004, 04:21 PM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by milk_vanilla
 hey, i uncheck it with right on it's directory,select property, and then uncheck the "read-only" button isnt it?>
but it still check it, even i already uncheck it.
-_-;
am i wrong?

Hey,

Right click on .mdb file and then select properties and then uncheck the checkbox of readonly.
Secondly, have u typed

rst.open sql,conn,3,3

???

3,3, allows database to be updated or deleting...and it pointer points forward...i m not sure about the details of this 3,3 but it sure helps!

Cheers!

Farzan Q.
BS(TeleCommunication)
Iqra University.
 
Old December 2nd, 2004, 08:22 PM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i already uncheck the checkbox read only, but something weird came out , when i right clicked on the forlder for my db files, it checked again automaticly, with like a "blur" check, seems it cannot changed
it says
"Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only."
anybody can help with my problem? i have to solve this problem, my assignment due came soon...
cheers!

 
Old December 3rd, 2004, 03:45 AM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try to copy the database in any other partition and then check its attributes by right clicking on the file.

Or make other db.

One thing more try to show all files in ur PC. and then check if your db file has any previous opened file copy??? if you found delete it.


Farzan Q.
BS(TeleCommunication)
Iqra University.
 
Old December 5th, 2004, 07:35 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

------------------------------------------
this reply is posted also on another topic
------------------------------------------

I had a problem like yours on my application. So...

the solution lies here (I guess):
http://support.microsoft.com/default...b;en-us;175168

The only thing I had to do was to:
1. go to the properties of the folder that contains my db
2. go the the WEB SHARING tab
3. click on "Share this folder"
4. check "read, write, *script source*"
5. and so it is done.

I`m working on Win XP pro with IIS 5.1 (SP 1), MS Access db.

But now I have the following question... is there a possibility to occur a security problem now that I`ve checked that "web sharing" function... or it`s just works fine like that?????





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help regarding Addnew Kaustav Classic ASP Databases 8 January 10th, 2010 06:33 PM
how to update data to DB from data set umank.88 ADO.NET 1 May 7th, 2008 10:07 PM
Update or CancelUpdate without AddNew or Edit ru1 Access 1 October 15th, 2005 02:24 PM
Addnew with oracle mail4nrs Classic ASP Databases 0 August 23rd, 2004 10:10 AM
addnew method jesuseyi Classic ASP Databases 1 August 27th, 2003 02:46 AM





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