。 不兼容> SqlDataAdapter的。它是一个sqlcommand对象。它就像 说这是一个 。 Hey,I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/usingadonet.aspI can get everything to work up to the DataAdd part(Section heading is Adding Rows to a DataSet)I dont really know what to do after i have added all thecode for the DataAdd() procedure. Other than the DataAdd() for the button that i want it to use.I dont know where to put that INSERT SQL Statement or addthe new row to the datatable in the dataset.Also in that main code of the DataAdd() procedure thereis a line like this:oBuild = New SqlClient.SqlDataAdapter(oAdapter)Does anyone know why i get : Value oftype ''System.Data.SqlClient.SqlDataAdapter'' cannot beconverted to ''System.Data.SqlClient.SqlCommand''.???Any help on this would be much appreciated.Thank you. 解决方案. incompatible type than a saying "this is an. 这篇关于将数据添加到表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 14:45