Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Binding large data to a data table using SQL Server

$
0
0

Good Day,

I have used textFieldParser to import 4.5 million data from a text file to a Sql data table using vb.net. I have performed several SQL query to update the datatable. All went fine.  But when i wanted to populate the dataTableAdapter with the table data  in order to display the data to a datagridview,  "System.OutOfMemoryException" was thrown. 

Error was thrown at this command: 

"Sim_VehRecordTableAdapter.Fill(Main_DataDataSet.Sim_VehRecord)"

Whats can be the probable solution.? I have disposed all sqlcommand and sqlconnection before i fill the TableAdapter.

Thanks

Tariq 




Viewing all articles
Browse latest Browse all 2535

Trending Articles