在AseBulkCopy的writeToServer方法时获取错误?
我试过了,
con.Open();
MessageBox.Show("Connection Successful");
string query;
query = "select * from Sample11";
AseCommand cmd = new AseCommand(query,con);
AseDataAdapter da = new AseDataAdapter(cmd);
DataTable dt = null;
dt = new DataTable();
da.Fill(dt);
AseBulkCopy f = new AseBulkCopy(con);
f.DestinationTableName = "Sample12";
f.WriteToServer(dt);
MessageBox.Show("Insertion Complete");
f.Close();
con.Close();
我收到此错误
无法将'System.Int16'类型的对象强制转换为'System.String'