Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert SqlDataReader to a Recordset in VB.NET

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
Hi,

I would like to use CopyFromRecordset Excel method to export data to Excel by avoiding looping through the records.
I have SqlDataReader populated with data.
Would it be possible to implement?

Many thanks

vladk
 
Hi, you seem a guy who avoid long coding. By the way, I would suggest you to use it in a proper way (as per standards) and not avoid looping. Any other technique may slow down your app. Btw, you can write a sub for looping and call that within your main code.
 
Thank you TopTeller,

I do use a loop of cause, thinking some other approach could accelerate processing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top