I have SqlDataAdapterone in which I am updating DataRow.
I have an exception
Dynamic SQL generation for UpdateCommand is not supported with SelectCommand, which does not return key column information
Error if I put the primary key in the table.
But I do not want to insert a primary key into it.
var dataAdapter = new SqlDataAdapter();
var updatedRows = Getting some row ...
dataAdapter.Update(updatedRows);
source
share