Just a small correction in my query.
It doesn't throw a Null Reference Exception, but Invalid Operation Exception - No data exists for the row/column.
Susmita
Dear Experts,
I am trying to execute a store procedure using the OleDbCommand.ExecuteReader() method. The stored proc returns 64 rows. Although, the program is successfully executing the stored proc, but it throws a runtime Null Reference exception after retrieving few rows. I am retrieving...
Thanks for the reply.
But I would like to know what does the statement
OleDbParameter [] params = new OleDbParameter[2];
exactly do? I thought that it allocates and initializes the memory for the array.
Susmita
Dear Experts,
I was trying to create an array of OleDbParameter using the following code snippet, but it gave me a NullReference Exception - "Object Reference not set to an instance of an object."
OleDbParameter [] params = new OleDbParameter[2];
SPparams[0].ParameterName = "BeginningDate"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.