Best way to pass sqldatareader?

G

Guest

Hey all-
I've done some reading and came accross a few different sources that say
it's not a good idea to pass sqlDataReaders. This is fine, but how are you
really suppost to do this then?

In my current app I created a Class and then created a few custom functions
that return datareaders. Would somone share with me how I really need to be
doing this?

Thanks,
Doug
 
K

Kevin Spencer

Uncle Chutney sez "There is an exception to every rule. Except this one."
I've done some reading and came accross a few different sources that say
it's not a good idea to pass sqlDataReaders.

It isn't a hard and fast rule. On the other hand, if you have to ask, you
should probably follow it.
This is fine, but how are you
really suppost to do this then?

Use DataTables or DataSets instead?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top