0
可以插入SQL與DataSet
輸入?數據集插入表
我創建了我DataSet
這樣的:
SqlCommand comm_SelectAll = new SqlCommand(sql_SelectAll, connectionWrapper.conn);
comm_SelectAll.Parameters.AddWithValue("@NO_CLIENT", IdClient);
if (Anne != "")
comm_SelectAll.Parameters.AddWithValue("@DATE_PERIMER", Anne);
SqlDataAdapter adapt_SelectAll = new SqlDataAdapter();
adapt_SelectAll.SelectCommand = comm_SelectAll;
DataSet dSet_SelectAll = new DataSet();
adapt_SelectAll.Fill(dSet_SelectAll);
dSet_SelectAll.Dispose();
adapt_SelectAll.Dispose();
現在我想將數據插入SQL表XX,我該怎麼辦呢?
感謝您提前
http://www.programmersheaven.com/2/FAQ-ADONET-Insert-Record-使用-Dataset和一個**很多**更基本的ADO.NET DataSet教程.... Google是你的朋友! –
什麼版本的sql server? – billinkc