Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cannot update. Database or object is read
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cannot update. Database or object is read

 Post Reply Post Reply
Author
brolinuk View Drop Down
Newbie
Newbie
Avatar

Joined: 24 October 2003
Location: United Kingdom
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote brolinuk Quote  Post ReplyReply Direct Link To This Post Topic: Cannot update. Database or object is read
    Posted: 24 October 2003 at 9:51pm
I tried to run the Asp program on my computer and got this error message when I trying to connect the program to the database. I think it might be some thing wrong with permissions on the server. However, I don't how to configure the permissions under Windows XP Pro. I wish any body could give me a hand. The IIS that used is version 5.1. Thanks
Back to Top
Flamewave View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 June 2002
Location: United States
Status: Offline
Points: 376
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flamewave Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 1:28am
Whats the error message? if its permission errors, then all you have to do is set the permissions for the IUSER_COMPUTERNAME by right-clicking on the database (or folder the db is in) and giving them the ability to view, read, and write to the database (if they aren't going to need write ability, you can not give them write access for extra security).
- Flamewave

They say the grass is greener on the other side, but if you really think about it, the grass is greener on both sides.
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 2:54pm
if it says that database or object is read only, then you need to set the IUSR acct permissions in the database folder to read and write.
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2003 at 2:55pm
setting up permissions.


Edited by KCWebMonkey
Back to Top
brolinuk View Drop Down
Newbie
Newbie
Avatar

Joined: 24 October 2003
Location: United Kingdom
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote brolinuk Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2003 at 5:52pm
Thanks for your reply mates. The problem is that I am working under windows XP Pro, which dose not provide the ability to set the permission of write, either the the db folder or db file. I am very clear with IIS configuration. It is the only please I can find USER_COMPUTERNAME. How would I configure it? Thanks 
Back to Top
BecauseofChrist View Drop Down
Newbie
Newbie


Joined: 23 February 2003
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote BecauseofChrist Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2003 at 4:59pm

I am having a similar problem. I do not know that much about servers and IIS, but I do have IIS set up on my computer at home and at work. At home, I am running XP Pro, and I am running 2000 at work. Right now, I am trying to create a simple script to add a record to a database. It gives me the error, "Cannot update. Database or object is read only." When I upload to my host, it works fine. I have done similar things at work, without having to change any permissions.

Can anyone help me? Any suggestions are greatly appreciated.

Thanks ahead of time.

Back to Top
BecauseofChrist View Drop Down
Newbie
Newbie


Joined: 23 February 2003
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote BecauseofChrist Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2003 at 5:42pm
Well, I found how to solve the problem. In XP, you have to turn off simple file sharing. I don't know exactly what this does, and I'm not on a network so I felt safe turning it off. To turn it off, open Windows Explorer and go to Tools, Folder Options, the View tab, and under Advanced Settings there is an option to use simple file sharing at the verry bottom. Uncheck that and you should be able to have the Security tab on the properties of the folder or database you want to give write permissions. I don't know exactly what to do from there, but I just gave all that was listed write permissions and now my script is working fine. I might be doing something I shouldn't somewhere, but I have anything on my PC that I would be scared of anyone else seeing. And I'm just happy that my script is finally working.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.