Solve “Update requires a valid *Command when passed DataRow collection with modified rows”!

February 14, 2011 at 4:18 pm Leave a comment

When inserting/updating/deleting data from dataset and updating changes to database, error ”Update requires a valid *Command when passed DataRow collection with modified rows” can appear. Just create CommandBuilder object before calling Update method of DataSet. The CommandBuilder will help DataSet to create necessary commands (insert/update/delete) for the database operations.

Ph.

Entry filed under: programming, Tổng hợp. Tags: .

Use LIKE operator to retrieve data from MS Acess in C# Stored procedure trong SQL Server (version 2000)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories


Follow

Get every new post delivered to your Inbox.