amateursRus
Technical User
Hi,
I'm having a problem using the above (in C# 2005 Express) to return data from an Oracle 10 Db.
The code I'm using is -
using (OdbcConnection oraCon = new OdbcConnection(OraConnectString))
{
OdbcCommand OraCmd = new OdbcCommand(OraQueryString, oraCon);
oraCon.Open();
OdbcDataAdapter OraAdapter = new OdbcDataAdapter();
OraAdapter.SelectCommand = OraCmd;
DataTable oraTable = new DataTable();
OraAdapter.Fill(oraTable);
rowCount = oraTable.Rows.Count;
MessageBox.Show( "oraTable count = " + rowCount );
}
If I run a query to return a count or sum of fields it runs in a few seconds but if I try to return a row list from the single table I'm querying the process falls over with the mouse cursor stuck in receive.
The table is large(ish) with over 125,000 rows but I can't see the simple size being a problem?
My workstation has 2Gb of RAM so that should not be a problem.
Any ideas/help gratefully accepted.
I'm having a problem using the above (in C# 2005 Express) to return data from an Oracle 10 Db.
The code I'm using is -
using (OdbcConnection oraCon = new OdbcConnection(OraConnectString))
{
OdbcCommand OraCmd = new OdbcCommand(OraQueryString, oraCon);
oraCon.Open();
OdbcDataAdapter OraAdapter = new OdbcDataAdapter();
OraAdapter.SelectCommand = OraCmd;
DataTable oraTable = new DataTable();
OraAdapter.Fill(oraTable);
rowCount = oraTable.Rows.Count;
MessageBox.Show( "oraTable count = " + rowCount );
}
If I run a query to return a count or sum of fields it runs in a few seconds but if I try to return a row list from the single table I'm querying the process falls over with the mouse cursor stuck in receive.
The table is large(ish) with over 125,000 rows but I can't see the simple size being a problem?
My workstation has 2Gb of RAM so that should not be a problem.
Any ideas/help gratefully accepted.