473,569 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Access Layer using TableAdapter & Performance / Packaging

I have a question / concern regarding the new suggested way of creating a
data access layer in an n-tier application. Typically, a web application
specifically, using the SOA (Service Oriented Architecture) approach.

At various sites such as 15 Seconds
(http://www.15seconds.com/issue/050721.htm) they advocate using the
TableAdapter wizard to generate the data access layer.

Describing the TableAdapter wizard, here is a quote from the above site:

"A TableAdapter connects to a database, executes queries, or stored
procedures against a database, and fills a DataTable with the data returned
by the query or stored procedure. In addition to filling existing data tables
with data, TableAdapters can return new data tables filled with data. The
TableAdapter Configuration Wizard allows you to create and edit TableAdapters
in strongly typed datasets. The wizard creates TableAdapters based on SQL
statements or existing stored procedures in the database. Through the wizard,
you can also create new stored procedures in the database."

Here is my question / concern: Isn't using IDataReader or a derived class a
much more performant way of accessing data?

In the past I have read several articles and have done the benchmark tests
myself, showing that doing crud operations through a data set is much more
performance inhibitive than using the lightweight objects and methods to
accomplish it.

A good article proving my point is the following:

http://aspnet.4guysfromrolla.com/dem.../050405-1.aspx

So then, has things changed so much in .Net 2.0 datasets and data objects
that the performance gap between datasets and lighterweight objects has been
closed?!? I doubt it. But please, do convince me! I *want* to make life
easier for myself, just not at the expense of sacraficing performance.

--
-Demetri
May 5 '06 #1
1 4536
>Isn't using IDataReader or a derived class a >much more performant way of
accessing data?
I was under the same impression until I tried the table adapter. I am still
a bit leery, but perf is not my concern any more. The table adapters smoke,
speed wise.
--
Gregory A. Beamer

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Demetri" <De*****@discus sions.microsoft .com> wrote in message
news:03******** *************** ***********@mic rosoft.com...I have a question / concern regarding the new suggested way of creating a
data access layer in an n-tier application. Typically, a web application
specifically, using the SOA (Service Oriented Architecture) approach.

At various sites such as 15 Seconds
(http://www.15seconds.com/issue/050721.htm) they advocate using the
TableAdapter wizard to generate the data access layer.

Describing the TableAdapter wizard, here is a quote from the above site:

"A TableAdapter connects to a database, executes queries, or stored
procedures against a database, and fills a DataTable with the data
returned
by the query or stored procedure. In addition to filling existing data
tables
with data, TableAdapters can return new data tables filled with data. The
TableAdapter Configuration Wizard allows you to create and edit
TableAdapters
in strongly typed datasets. The wizard creates TableAdapters based on SQL
statements or existing stored procedures in the database. Through the
wizard,
you can also create new stored procedures in the database."

Here is my question / concern: Isn't using IDataReader or a derived class
a
much more performant way of accessing data?

In the past I have read several articles and have done the benchmark tests
myself, showing that doing crud operations through a data set is much more
performance inhibitive than using the lightweight objects and methods to
accomplish it.

A good article proving my point is the following:

http://aspnet.4guysfromrolla.com/dem.../050405-1.aspx

So then, has things changed so much in .Net 2.0 datasets and data objects
that the performance gap between datasets and lighterweight objects has
been
closed?!? I doubt it. But please, do convince me! I *want* to make life
easier for myself, just not at the expense of sacraficing performance.

--
-Demetri

May 6 '06 #2

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

Similar topics

9
3292
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for >people moving from power user to developer, but now I suggest you browse >it, >too. It strongly emphasizes ADO, which knowledgeable Microsoft...
4
2079
by: Oyvind | last post by:
I'm working on a Windows forms/C# database application. My background is 6-7 years of VB 4 - 6, MS Access, VC++, mixed in with a lot of T-SQL and MS SQL Server in general and some OOA/OOD. Previously, I haven't been overly impressed with the capabilities of the various "graphical" data access tools that have been provided with VB etc....
1
2570
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am looking for a robust solution for a major application. Almost every developer seems to come up with a completely different solution. While many of them...
5
1950
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can drop non-visual (controls) on the data module surface and wire them up and create procedures, functions, event procedures. In the source file (code...
1
2743
by: dbuchanan | last post by:
Hello, A section in Data Sources window is mystifying to me. In the case of my code the Data Sources window shows my references to the data access layer. First here is what I see in my Data Sources window ... ( means expandable, means expanded, is a checked checkbox, "QmsDataLayer" is the name of the referenced data layer.)
15
2536
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions, modifications and deletions functions very well in the dataset. But impossible to transmit modifications in ACCESS database. Impossible to WRITE in database....
0
849
by: Lance | last post by:
I am trying to add a new Data Layer Class in Visual Studio Express. Just a heads up, but I am new to this technology. In the tutorial I am using, it gives these instructions: "2. In the TableAdapter Configuration Wizard click Next twice. In the Enter a SQL Statement step, enter the SELECT statement you used in the previous lessons: "SELECT...
11
1600
by: sanders_mike_newsgroups | last post by:
Hi I have a web app that needs to be able to use either SQL Server or MS Access - depending upon the installation. I want to avoid having unnessesary amounts of code (eg: dim x as sqlDataReader, dim y as OLEDBDatareader in lots of parts of the app) Could I not just avoid this and use OLEDB for both database types? Whats the best way -...
10
3061
by: Martin Hughes | last post by:
Hi guys, I was wondering if anyone could give me some advice. I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received from a vehicle on a track. The data flow would be as follows: |-- Workstation 1
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.