尝试使用以下方法触发存储过程并填充数据集时出现异常

OleDbDataAdapter.Fill(Dataset ds)

请注意,此异常仅适用于具有数百万行的大型表,对于较小的表,它可以正常工作 .

用于SQL Server的Microsoft OLE DB提供程序:System.Data.OleDb.OleDbDataReader.NextResult()处于System.Data.OleDb.OleDbDataReader执行时,System.Data.OleDb.OleDbDataReader.NextResult()处的System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)的未指定错误(CommandBehavior行为) ,String方法)位于System.Data.Common.DbDataAdapter.FillInternal(DataSet)的System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)的System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) System.Data.Common.DbDataAdapter.Fill上的数据集,DataTable [] datatables,Int32 startRecord,Int32 maxRecords,String srcTable,IDbCommand命令,CommandBehavior行为)(DataSet dataSet,Int32 startRecord,Int32 maxRecords,String srcTable,IDbCommand命令,CommandBehavior行为)在System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)