Saving Dataset to database

后端 未结 2 1897
不思量自难忘°
不思量自难忘° 2020-12-17 04:57

I am trying to save a dataset to a database. I got a dataset from another class, Now changes will be made on the form by a user on a datagridview, then the changed Dataset

相关标签:
2条回答
  • 2020-12-17 05:06

    In order to run Update method of SqlDataAdapter you must have to configure InsertCommand, DeleteCommand and UpdateCommand properties along with SelectCommand of SqlDataAdapter or construct the SqlCommandBuilder object which configure these commands implicitly.

    0 讨论(0)
  • 2020-12-17 05:29

    Hey try following this tutorial here http://support.microsoft.com/kb/308507 first and then adapt it to your needs.

    0 讨论(0)
提交回复
热议问题