I am running the following lines...
The error I get is on the very last line where I try to set command.Command Text.
System.InvalidC astException: Unable to cast object of type 'System.String' to type 'Oracle.DataAcc ess.Client.Orac leConnection'
This is very strange, as it suddenly started happening out of the blue. Any suggestions? Thanks.
Code:
OracleConnection connection=new OracleConnection("myConnectionStringIsHere");
connection.Open();
var startValueParameter=new OracleParameter {ParameterName="@START_VALUE", Value=0};
var chunkSizeParameter=new OracleParameter {ParameterName="@CHUNK_SIZE", Value=10};
var command=new OracleCommand
{
Connection=connection,
CommandType=CommandType.Text
};
command.CommandText = "select EmployeeID, test_id from ExampleTable where (test_id > :START_VALUE) AND (rownum <= :CHUNK_SIZE)";
The error I get is on the very last line where I try to set command.Command Text.
System.InvalidC astException: Unable to cast object of type 'System.String' to type 'Oracle.DataAcc ess.Client.Orac leConnection'
This is very strange, as it suddenly started happening out of the blue. Any suggestions? Thanks.
Comment