473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

DataTable or DataSet? OleDB or Sql..?

Hello

I was wondering if you guys could help me out...... I might have mixed the
things up so bare with me.

I was wondering if I should use datatable or dataset when displaying data in
my asp.net page? Mostly i dont need paging, just showing data...... and does
both support paging in the datagrid control if i need it?

and which one is faster? I "always" use stored procedures for select,
insert, update, delete........ so I basically just send parameters to them
and let sql-server do the work, and not having some thing i modify before i
send the result to sql-server. (hope i explained correct there).

And second....... Should I use OleDB Provider or "regular" Sql-"class" (?)
to connect and execute things against my sql 2000 server? I've always used
OleDB provider when working with regular asp. Any pros/cons?

TIA
/Lasse
Nov 18 '05 #1
2 1568
If you are using SQL Server, I would recommend using sqlClient and not OleDb.
Whenever you are using SQL Server you should use sqlClient, as it is
specially optimized for SQL Server database.

Regarding the data binding to the DataGrid, Are you planning to sort the
grid later based on columns etc...I really don't have any personal choice but
most of the time I am using DataTable. In a dataset you have either a single
data table or a collection of tables, so in a way you are joining the
DataTable. You can also create a DataView from the DataTable.

Thanks,

Tapasvi Mehta
MCSD For .NET
Sr. Program Analyst/Architect
routeservices.com

"Lasse Edsvik" wrote:
Hello

I was wondering if you guys could help me out...... I might have mixed the
things up so bare with me.

I was wondering if I should use datatable or dataset when displaying data in
my asp.net page? Mostly i dont need paging, just showing data...... and does
both support paging in the datagrid control if i need it?

and which one is faster? I "always" use stored procedures for select,
insert, update, delete........ so I basically just send parameters to them
and let sql-server do the work, and not having some thing i modify before i
send the result to sql-server. (hope i explained correct there).

And second....... Should I use OleDB Provider or "regular" Sql-"class" (?)
to connect and execute things against my sql 2000 server? I've always used
OleDB provider when working with regular asp. Any pros/cons?

TIA
/Lasse

Nov 18 '05 #2
The only reason you would want to use OleDB is if you think there is a very
good chance you would have to use a non-SQL Server database in the future.

--
Jonathan Allen
"Lasse Edsvik" <la***@nospam.com> wrote in message
news:up*************@tk2msftngp13.phx.gbl...
Hello

I was wondering if you guys could help me out...... I might have mixed the
things up so bare with me.

I was wondering if I should use datatable or dataset when displaying data in my asp.net page? Mostly i dont need paging, just showing data...... and does both support paging in the datagrid control if i need it?

and which one is faster? I "always" use stored procedures for select,
insert, update, delete........ so I basically just send parameters to them
and let sql-server do the work, and not having some thing i modify before i send the result to sql-server. (hope i explained correct there).

And second....... Should I use OleDB Provider or "regular" Sql-"class" (?)
to connect and execute things against my sql 2000 server? I've always used
OleDB provider when working with regular asp. Any pros/cons?

TIA
/Lasse

Nov 18 '05 #3

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

Similar topics

1
by: Kelvin Nguyen | last post by:
Would anybody please help me out? I think my code is correct but it gave me an error I don't know what it is please correct me.
5
by: Grant | last post by:
Hello, How come when I add a new row to my dataset table it shows up as changed (agencyData.Haschanges() = True) but when I delete a row the dataset thinks here are no...
1
by: xaime | last post by:
Hi all, I have the code below. This is doing what I want, but always has the following exception: Update unable to find TableMapping or Datatable 'mytable' The code I'm using is: Try
10
by: Bernie Yaeger | last post by:
I have a need to add a primary key to a dataset/datatable. How can this be done using a standard oledb data provider? Tx for any help.
1
by: JohnR | last post by:
I'm using oledb to an Access datatable. I load the table into a dataset. I create databindings to link the fields on my form to the corresponding fields in the datatable. The tables...
4
by: Andre | last post by:
I am ruinning this in the global.asa VIA Visual Studio VB .NET (framework 1.1) I have a access database with a table called tblCounters with a feild called Counters with on row of data in it...
1
by: dellis | last post by:
Problem: My project was initially created without putting passwords in the connection string. When I added the password in the connection string, it disappears when performing a database fill. I...
2
by: enforcer6767 | last post by:
Hi all, I am able to save, update, delete etc to data in already existing tables, but i can't seem to work out how to create and save a new table to a database. Using Visual Studio 2005, VB. I've...
6
by: fniles | last post by:
I am using VB.NET 2005 and Access database. My program uses a timer that kicks in every 1 min to read from a database and copy the dataset table to a datatable. This database is in a class called...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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...
0
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
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...

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.