Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 how can we put a resultset of a sqldatareader into

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-05-16 : 11:25:04
how can we put a resultset of a sqldatareader into a datatable object?

Thanks.

dfiala
Posting Yak Master

116 Posts

Posted - 2006-05-16 : 11:42:02
There is an easy way to do this to put data into a DataTable. Simply use the SqlDataAdapter.Fill method. You don't have to mess around with the reader.

Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
Go to Top of Page
   

- Advertisement -