且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新SQL Server数据库n C#DataRow问题

更新时间:2023-02-08 18:01:45

如果发布的代码正确无误,请打开SqlConnection(con),然后立即将其关闭而不进行任何操作.

您可能会考虑做类似
的事情
If the code you have posted is accurate you open your SqlConnection (con) and then immediately close it again without doing anything with it.

You might consider doing something like
con.Open();
adapter1.Fill(dset1);
con.Close();



或以其他方式读取数据.



or reading the data in some other way.