System.ArgumentException: Object is not an ADODB.RecordSet or an ADODB.Record

前端 未结 6 776
一个人的身影
一个人的身影 2021-01-03 03:10

I used the code below to fill a data table -

OleDbDataAdapter oleDA = new OleDbDataAdapter();
DataTable dt = new DataTable();
oleDA.Fill(dt, Dts.Variables[         


        
6条回答
  •  一整个雨季
    2021-01-03 03:56

    Below worked for me without Fill.

    OleDbDataAdapter oleDA = new OleDbDataAdapter();
    DataSet ds = new DataSet();
    ds = (DataSet)Dts.Variables["User::myresultSet"].Value;
    

提交回复
热议问题