When I try to populate a datatable of a Oracle table via .NET, I get error as
Here is the code that I used:
DataTable PRDTableResults = new DataTable();
using (OracleDataAdapter dataAdapter = new OracleDataAdapter())
{
OracleCommand cmd = new OracleCommand("SELECT * from PRD");
cmd.CommandType = CommandType.Text;
cmd.Connection = conn;
dataAdapter.SelectCommand = cmd;
dataAdapter.Fill(PRDTableResults);
}
I am not sure why such error showed up. The PRD table has fields with no precision and scale defined but as NUMBER.

