If there are 1billion rows with 130 columns would it cause this error?
That seems like a lot of data and would likely cause the error.
How can i avoid this error and recieve the data i want?
You should use the DataReader
directly, bypassing the DataSet
. If you do this, the DataReader
will load only one row of data, only getting the next row when you call Read
.
OdbcCommand cmd = new OdbcCommand(queryString, conn); // Set Active Query
conn.Open(); // You may not need this if already open
var reader = cmd.ExecuteReader(); // Create Reader
while (reader.Read()) { ... } // Process records, one at a time
reader.Close(); // Close Reader after use
More info:
OdbcDataReader Class at MSDN