Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > .NET

Reply
 
LinkBack Thread Tools
Old June 18th, 2008, 12:52 AM   #1
New Member
 

Join Date: Oct 2005
Location: Mumbai
Age: 27
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 abhims is on a distinguished road
Help - Operation must use an updateable query.

I have put up an asp.net application on WINDOWS SHARED HOSTING.
Now the problem is my application is of no use beacuse the database requires write permissions to be updated, however my host says they cannot give write permissions due to security reasons, i will have to modify my code

what will be the solution to this problem

my application is in the "web" folder and the database is within the application's "App_Data" directory.

I have a "Database" folder in my websites root.

will using a dsn help me get out of this problem, if yes how do i modify the connection string for it

what are the other possible solutions

Thanks in advance
abhims is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 18th, 2008, 03:12 AM   #2
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
Re: Help - Operation must use an updateable query.

I would not use the database directory, thats for sure - because it resides in your web root.

If you application throws a database error then the full path to it could be revealed.

The app_data directory may have write permissions set up for DSN accesses.

Personally, in this situation I would explain to your host that you need to access AND update your database -which method do they recommend.

If you need a DSN, then they will have to set that up for you unless you have a control panel to do that yourself.

We can help you with the connection string if you need, but I would definitly speak to your host firstly.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 18th, 2008, 04:06 AM   #3
New Member
 

Join Date: Oct 2005
Location: Mumbai
Age: 27
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 abhims is on a distinguished road
Re: Help - Operation must use an updateable query.

Thanks for the response Rob!

I can add dsn with my control panel, i beileve it might solve the problem, but I dont know how to use the DSN connection string in the web.config file.

I have spoken to my host, they say that i will have to modify my code.

I would want to test the DSN way myself before I get back to them, so that i can put my issue in a strong way.

Thanks
abhims is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 18th, 2008, 04:14 AM   #4
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
Re: Help - Operation must use an updateable query.

Hi, you need something similar to the following
Code:
<configuration>
    <appSettings>
        <add key="DSN" value="Server=(local);Database=DSNName;UID=sa;PWD="  />
     </appSettings>
</configuration>
Hope this helps.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple-step operation generated errors Andrew1986 Databases 2 March 14th, 2008 04:29 AM
I need to know about Gradient fill operation balaakrs Flash and ActionScript 1 October 1st, 2007 05:38 PM
MySQL query query dangergeek Databases 3 April 12th, 2007 08:45 AM
php updateable page information SynisterJon PHP 3 December 31st, 2006 09:41 PM
Operation for Date siaoa84 Classic ASP 3 October 17th, 2003 06:10 AM


Search Engine Optimization by vBSEO 3.2.0 RC8