Could you please give me any reason for using SqlCommand (to execute SQL statements directly) better than using DataTable and DataAdapter? Of course what I want to do with my database are only INSERT, DELETE, UPDATE (except SELECT and others features can only be achieved using SQL statements directly).
I want to say more about how easy inserting, deleting and updating with DataTable and DataAdapter are. First, to insert a new row into some table, simply create a new DataRow and then Add this DataRow to DataTable.Rows, then use DataAdapter to update the database. Second, to delete a row, simply remove it from DataTable.Rows or commonly we have a DataGridView bound to the DataTable and deleting a row in DataGridView will reflect the effect to the DataTable. The last, to update the database, assume that users edit the data through the DataGridView, all these changes will reflect to the DataTable and simply we use DataAdapter to update the database from that modified DataTable.
Contrarily, using SqlCommand to insert, delete, update the database is much more difficult and complexed.
I'm hesitating between those two ways.
Thank you very much!