473,372 Members | 951 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,372 software developers and data experts.

difference between Data Set, Data Reader,Data Adapter

hi all.

1) I want know the difference betwwen DataSet,DataReader,DataAdapter.

2) How can I call Stored Procedure in vb.net

with regards,
Jan 29 '07 #1
3 17671
hi all.

1) I want know the difference betwwen DataSet,DataReader,DataAdapter.

2) How can I call Stored Procedure in vb.net

with regards,
hi doni,
Data reader is an object through which you can read a sequential stream of data. it's a forward only data wherein you cannot go back to read previous data.
data set and data adapter object help us to work in disconnected mode. data set is an in cache memory representation of tables. the data is filled from the data source to the data set thro' the data adapter. once the table in the dataset is modified, the changes are broadcast to the database back thro; the data adapter.
to know the usage of each, follow the link,


stored procedures can be accessed from the coding thro' ado.net
for that you have to mention your command type as stored procedure.
Jan 29 '07 #2
Using procedures in vb.net

Dim con As New SqlClient.SqlConnection(Session("ConnectionString" ))
Dim adpater As SqlClient.SqlDataAdapter
Dim ndtTempTable As DataTable
Dim dRow As DataRow
adpater = New SqlClient.SqlDataAdapter
adpater.SelectCommand = New SqlClient.SqlCommand("SelectComand", con)
adpater.SelectCommand.CommandType = CommandType.StoredProcedure

adpaterSelectCommand.Parameters.Add(New SqlClient.SqlParameter("@ClientID", SqlDbType.Int, 4))
adpater.SelectCommand.Parameters("@ClientID").Valu e = niClientId

Rakesh Kashnia
Nov 14 '07 #3
13,262 8TB
hi all.

1) I want know the difference betwwen DataSet,DataReader,DataAdapter.

2) How can I call Stored Procedure in vb.net

with regards,
Why don't you read the specs for those classes and see for yourself.
Nov 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table...
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by...
by: foreman | last post by:
Hi there, Hello everybody. I am a newbie to dot net framework class lib. I am confused about those classes such as all of the stream classes and those XXXReader XXXWriter. In fact, I have tried...
by: shapper | last post by:
Hello, I have an SQL database table with 20 fields: Field_01, Field_02, etc. I am creating a string with StringBuilder. I want to include in my string the fields of one record of the database....
by: Arne Beruldsen | last post by:
I have a very simple Access data base. No new info is going to be added...the only changes are to existing fields. I have 2 tables both with one row each. I'm using vb.net. I can easily...
by: simonZ | last post by:
I have data reader(I can't create data adapter, because I'm using command.BeginExecuteReader and EndExecuteReader) What is the best way to save data reader to table inside the data set? Any...
by: bbawa1 | last post by:
Hi, I have a table which has a field ItemsReceived of type datetime. I have a grid view which has two columns. In first column i have to show the data from field ItemsReceived and in second...
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.