Why use disconnected datasets?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ok, the reasons I see for using them are:
1: Database portability
2: Improved Performance on Database server as it has less work to do

The disadvantages...
1: Uncessarily comlicated to handle updates back to the database

If I am not concerned about database portability and the load on the
database server is small then would it be good practice to use datareaders
only in my asp.net application and update back to the database by stored
procedure. It seems so more easier....
 
If I am not concerned about database portability and the load on the
database server is small then would it be good practice to use datareaders
only in my asp.net application and update back to the database by stored
procedure. It seems so more easier....

Yes, apart from in certain circumstances.

One of these is if you have a DataGrid, or GridView these days, bound to a
DataReader, you will not be able to do paging properly - you will ned to
bind it to a DataSet instead.
 
Except it's hard to believe that in a solid app you'd actually want to page
in the presentation layer. Paging should be done at the data layer because
(a) it increases reuse and (b) is far more efficient (not a
micro-optimization).

Karl
 

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

Back
Top