Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 June 2nd, 2004, 05:49 AM
Authorized User
 
Join Date: Jun 2004
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dataset has not been updated with table changes

In Chapter9 Page 306 Updating the database, I get the following Server Error. It suggests that the dataset 'data' has not been updated since it was introduced as an argument of dataAdapter in line 23, has anyone experienced this problem or knows how to pass a revised value into the recordset?

Server Error in '/BookASP_NET' Application.
--------------------------------------------------------------------------------

Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

Source Error:


Line 82: '============================================
Line 83: ' Update the data store
Line 84: dataAdapter.Update(Data, "Employees")
Line 85:
Line 86: '============================================


Source File: c:\inetpub\wwwroot\BookASP_NET\CH9\UpdateDatabase. aspx Line: 84

 
Old June 2nd, 2004, 05:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The "Operation must use an updateable query" error usually indicates a permission issue. Check out this FAQ to find out how to fix this:

http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=263

Although it's targeted at classic ASP, it'll work for .NET as well.

You may need this FAQ to find out the account that IIS is using: http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=287

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 29th, 2004, 03:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Want to know how this ended? Look here: http://p2p.wrox.com/topic.asp?TOPIC_ID=15434


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
strongly-typed DataSet.Rows r n't getting Updated srkvellanki ASP.NET 2.0 Professional 3 October 1st, 2008 05:26 PM
Find difference between table and updated table jasemhi Access 2 September 20th, 2008 04:25 PM
Replace and existing table with an updated one amerk20 Access VBA 6 August 30th, 2005 07:44 AM
Creating a new table from a dataset... vb_developer SQL Server ASP 4 September 21st, 2004 07:41 AM
Using Temp Table and dataset Bhavin Crystal Reports 0 September 14th, 2004 08:39 AM





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