473,473 Members | 1,800 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Why use disconnected datasets?

NH
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....
Feb 10 '06 #1
4 1379
Yes.

--
http://www.openmymind.net/

"NH" <NH@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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....

Feb 10 '06 #2
"NH" <NH@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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.
Feb 10 '06 #3
NH
thanks for the replies, good point about the paging.

"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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.

Feb 10 '06 #4
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

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"NH" <NH@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
thanks for the replies, good point about the paging.

"Mark Rae" wrote:
"NH" <NH@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
> 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.

Feb 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew | last post by:
I'm a long time VB6/ADO and Java developer new to ADO.NET. I'm trying to decide on best practices and I'd appreciate any assistance. I have one specific question and another more general...
4
by: Steve Le Monnier | last post by:
The ADO.NET DataSet is idea for application development, especially if you need disconnected data. DataReader objects are great in the connected environment but are forward only. What do you do...
5
by: J | last post by:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here ip() If Not IsPostBack Then ...
2
by: Sky | last post by:
Hello, The books on C# I have read talk of using the DataSets in disconnected mode, and Adding/Removing/Updating records from it, and letting it handle all the updating on the Database in one...
3
by: AC | last post by:
Running VS.NET 2003 Enterprise Arch on WinXP Pro SP1 with a P4-2.4Ghz, 760MB+ RAM, and 10+GB free disk space. Laptop is part of a domain. When working on a web project connected at the office,...
10
by: Rich | last post by:
Hello, I have to read and write around one million records from an external data source to Sql Server2k every night. That's a lot of I/O. I am using VB6 for this (takes hours). I am...
0
by: garethdjames | last post by:
For scalability we wish to use disconnected DataSets and hold them in the application cache. This means that multiple concurrent users will be reading the data (its read only) The DataSet is...
9
by: Steven Nagy | last post by:
I know that .NET is based on a disconnected architecture, but I can't conceive of why continually opening and closing a connection would be faster than leaving a connection open. So I ran a test...
1
by: ist | last post by:
Hi, I am trying to create a Session-Wide, Disconnected, Updatable DataTable (or DataSet) object and use it through an ASP.NET GridView. The scenario is this: 1. When the page is first loaded,...
2
by: Gabriel | last post by:
Hello, I'm looking for documentation with "Best Practice" for ASP.NET application In which case use Connected or Disconnected mode Typed dataset or not ? I didn'd find anything pertinent...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.