string sql="";
dbhelper.ExecuteNonQuery(sql);
DataTable dt = dbhelper.GetDataTable(sql);
if (dt != null && dt.Rows.Count > 0)
{
SqlBulkCopy bcp = new SqlBulkCopy("server=.;database=Service;uid=sa;pwd=123456");
bcp.DestinationTableName = "InventoryDiff";
bcp.WriteToServer(dt);
}
------------------------------------ enjoy code,enjoy life.
------------------------------------ 共 同 学 习,共 同 进 步.