Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 January 29th, 2007, 02:10 PM
bc7 bc7 is offline
Registered User
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Must use "updatable query"

Hi,

I am able to read and write to my database on my local machine without any problems.

However after I hosted my site I am able to read from my database but receive an error when I write to it. The error I get is that I have to use an updatable query.

I have added the IUSR permissions to the database file (access .mdb) before uploading to my site and my hosting site has told me that the folder it is in also has write permissions.

Does anyone else have any ideas what is wrong??

Thank You
 
Old January 29th, 2007, 02:26 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're posting this in a .NET forum, so maybe you are using ASP.NET?

If that's the case, you don't need the IUSR account, but ASPNET or Network Service instead.

Take a look here:

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=263
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=287

for more details.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old January 29th, 2007, 02:41 PM
bc7 bc7 is offline
Registered User
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for that.

However, I am changing the permissions on my local machine and then uploading to my host site. When i then download the DB from the host site, the permissions that I had added are gone.

I don't understand why this is happening.
 
Old January 29th, 2007, 03:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Security settings only apply to the system where they are set; transferring a file by FTP basically erases all associated security settings. When you save the file locally on disk, the settings for the parent folder on the local system apply, not those from the remote host.

Similarly, when uploading files, the settings are removed as well. So, you can't set the settings locally and then upload the file to a folder on the server. Your hosts needs to apply security on the database folder.

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old January 30th, 2007, 03:58 AM
bc7 bc7 is offline
Registered User
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes that must be my problem. Thank you very much!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use Updatable query Gnub Beginning VB 6 4 June 19th, 2007 12:32 PM
recordset not updatable Vince_421 Access VBA 3 February 13th, 2007 05:02 PM
updatable subform Vince_421 Access 1 June 1st, 2006 07:49 AM
Error in view updatable pavanp SQL Server ASP 1 September 7th, 2004 09:35 PM
Access 2000 forms not updatable re_anu Access VBA 4 May 28th, 2004 10:44 PM





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