Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2008, 07:58 AM
Authorized User
 
Join Date: Jan 2008
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default datareader clone

Hi
Is it possible to create a duplicate copy of datareader in vb.net ? it yes then how?

thanks
 
Old February 25th, 2008, 10:54 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

One of the aspects of the data reader is that it is connected to the data source while it's open. So you can't clone it in a similar fashion as you can't open a second one on the same data source.

What are you trying to achieve by cloning it? Would a better solution be to create a strongly typed object collection from the rows in the data reader? Or perhaps use a dataset which will allow for disconnected data?

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about the clone() method ianni Java Basics 1 December 26th, 2007 05:14 AM
Repeating Table Clone Row edove Infopath 1 February 22nd, 2007 09:03 AM
chat client clone exifyde Pro VB 6 0 January 10th, 2007 03:25 PM
Doubt in clone Method of Object Class pandian Java Basics 1 October 12th, 2006 03:29 PM
How to clone MS Access table in C# cameleon69 C# 0 January 21st, 2004 10:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.