Original Post
Hey, I am working on a program involving a database and I do not know that much regarding database programming. Currently I am connecting to a MS Access database with OleDB and am using the OleDbCommandBuilder to have it make all my INSERT/MODIFY/DELETE commands. However, I have tables with various foreign keys in them and I need to perform a cascade delete to delete the parent and all its children in the different tables. I get an error when just using my regular delete method, which is: // CODE DataTable deletedContentTable = myDataSet.Tables["TABLE_NAME"].GetChanges(DataRowState.Deleted); myDataAdapter.Update(deletedContentTable); deletedContentTable.Dispose(); myDataSet.AcceptChanges(); // END CODE This does not currently perform a cascade delete. Does anyone know how I can force it or turn on cascade delete with the OleDbCommandBuilder? Or do I have just have to write my own special SQL commands to do these DELETE's? Thanks for the help.