J
Jan Nielsen
I'm trying to use SqlDataAdapter, SqlCommandBuilder and DataSet to modify a
table in a database.
My problem is that I can't delete any records in my table. I've tried to
call the Clear, RemoveAt and Delete methods. All of the methods seems to
have an effect on the DataSet. At least that's what Rows.Count indicates.
But after calling the Update method, no changes has been made to the table
anyway. And no exceptions are thrown either. Return value from Update is 0.
I can add new records through the same DataSet. It's not a security problem.
Any ideas of what I could be doing wrong ?
/Jan Nielsen
table in a database.
My problem is that I can't delete any records in my table. I've tried to
call the Clear, RemoveAt and Delete methods. All of the methods seems to
have an effect on the DataSet. At least that's what Rows.Count indicates.
But after calling the Update method, no changes has been made to the table
anyway. And no exceptions are thrown either. Return value from Update is 0.
I can add new records through the same DataSet. It's not a security problem.
Any ideas of what I could be doing wrong ?
/Jan Nielsen