How to copy a DataReader

  • Thread starter Thread starter Gilgamesh
  • Start date Start date
G

Gilgamesh

I need to copy a datareader so I could use it in different sections of the
code. The problem is that once I read datareader it can't be read again.

Thanks,
Gilgamesh
 
DataReader is designed for fast forward-only data access. If you want to go
over your data multiple times in different sections, consider using DataSet
instead.
 
Back
Top