Ali  Alfaraj

Ali Alfaraj

  • NA
  • 68
  • 108.3k

Question in database

Apr 9 2011 3:58 AM
Greetings dear c# corner members,

I would like to create a table in my database, where all items can have duplicate values. So I understand to do that, I must not set a primary key for my table. However If I don't set a primary key for my table, I will get the following error each time I try to update my table:

Update requires a valid UpdateCommand when passed DataRow collection with modified rows.

How can I overcome this problem?

Hope you can help

Ali

Answers (10)