In a VB.NET how can I loop through an an Access database without loading it to a DataGridView or loading it to a DataGridView and unload it after a comparison function finshed its work?
In a VB.NET how can I loop through an an Access database without loading
Share
Using DataReader you can loop thru data, one row at a time without necessity of loading entire result set into DataTable/GridView.
Example usage (from http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbdatareader(v=vs.90).aspx)
You pass connection string to your MS Access Database, and SELECT query to run. Example outputs data from the 1st column to console – but you can replace it with your own logic