updating main data source

G

Grant

For some reason I cannot update certain adapters using the command:
'predecessorAdapter.Update(agencyDatabaseDataset1)'.

The error message I get is:

Operation must use an updateable query.
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows,
DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String
srcTable)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet)
at AgencyDatabaseAdminTool.MainForm.menuItem4_Click(Object sender,
EventArgs e)

Does this have anything to do with the insert or update statement?

Update statement looks like:
UPDATE Predecessor
SET comments = ?, predecessor = ?, successor = ?
WHERE (predecessor = ?) AND (successor = ?)

Insert statement look like:
INSERT INTO Predecessor
(comments, predecessor, successor)
VALUES (?, ?, ?)


Thanks,
Grant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top