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
|