ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 11th, 2003, 04:11 AM
jtanudjaja jtanudjaja is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 7 jtanudjaja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry problem updating database

whenever i try to add a new entry to a database through ASP i keep getting the following message:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

i have enabled WRITE in IIS and i have made sure that the database is not read-only in ODBC.

Funny thing is it was working fine a few weeks before but now when i try and add a new record that message keeps coming up.

I am fresh out of ideas. I have created a new DSN in ODBC but it still comes up with that message.

If anyone can help me it would be greatly appreciated

Reply With Quote
  #2  
Old September 11th, 2003, 04:40 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
you might want to indicate SQL Connection (with the parameters)and Query information that you are using to help the description a bit.
What has changed since the code worked?
Did you alter any related (ssi maybe?) files in the meanwhile?

Reply With Quote
  #3  
Old September 11th, 2003, 12:09 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
More than likely the IIS user account has no write permissions to the .mdb, possibly your host moved something or you did.

I have some info on this error here that may help

http://www.dougscode.com/forum4/topic.asp?TOPIC_ID=5

Reply With Quote
  #4  
Old September 12th, 2003, 02:55 AM
jtanudjaja jtanudjaja is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 7 jtanudjaja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanx doug. I have tried to change the security settings of the database but i have no Security tab when i right click on the database ? And i have looked for "Use Simple File Sharing (recommended)" setting in folder options like it said in that article but it can't be found. I am using Windows 2000 Server. I have also enabled write to the .mdb file in IIS but it still does not work.

In response OldJacques, there is no SQL statements in my coding.

Reply With Quote
  #5  
Old September 12th, 2003, 03:44 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
How are you adding new data to the database without an SQL statement to define what values are being inserted into which fields of which table?

Normally there is an Insert statement which is used to handle this from ASP.

That is usually what should be the subject of the "[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query." error message.

What is the line of code causing that message then?

Last edited by OldJacques : September 12th, 2003 at 03:48 AM.

Reply With Quote
  #6  
Old September 12th, 2003, 06:06 AM
jtanudjaja jtanudjaja is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 7 jtanudjaja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
im using the ADO instead of SQL to insert records. The error is on the line where it says:

objRS.Update

Reply With Quote
  #7  
Old September 12th, 2003, 06:18 AM
OldJacques's Avatar
OldJacques OldJacques is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: in Orbit mostly
Posts: 148 OldJacques User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
And the lines leading up to it that supply the objRS.Update statement (like objRS.Openusually with parameters, objRS.AddNew, and objRS("fieldname") = value)?

Reply With Quote
  #8  
Old September 13th, 2003, 01:59 AM
jtanudjaja jtanudjaja is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 7 jtanudjaja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
guys thanx for all the input but it turns out to be just the permission settings of the .mdb file. Special thanx to Doug G for the article.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > problem updating database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT