473,405 Members | 2,262 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,405 software developers and data experts.

ASP.Net SqlCommand SqlDataAdapter

Hi,

In the ASP.Net, it seems it can update data in different ways. It is my
impression that we can use the SqlCommand or SqlDataAdapter to update data.
But I'm wondering which method is better, and according to what rules?
Any help will be appreciated.
Jason
Nov 17 '05 #1
1 11051
Jason,

You are slightly confused I believe, you will always require a SqlCommand
object bu the comparison is between the SqlDataReader and the SqlDataAdapter
objects. There are several good sites on the net that detail the difference,
a few are lsited below:

http://msdn.microsoft.com/msdnmag/is...06/DataPoints/
http://aspnet.4guysfromrolla.com/articles/050405-1.aspx

HTH

Ollie Riches
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:Op**************@TK2MSFTNGP15.phx.gbl...
Hi,

In the ASP.Net, it seems it can update data in different ways. It is my
impression that we can use the SqlCommand or SqlDataAdapter to update
data. But I'm wondering which method is better, and according to what
rules?
Any help will be appreciated.
Jason

Nov 17 '05 #2

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

Similar topics

1
by: Steven Blair | last post by:
Hi, Here is a short decsription of my problem. I have written a dll for Database accessing. I have one method which can return a Dataset and another method which takes a Dataset and upates a...
2
by: Tracey | last post by:
Sorry for the repeated post. I tried to update a record in database using SqlCommand.ExecuteNonQuery( ) method (I failed using SqlDataAdapter). I traced the above statement and found that it returned...
1
by: Tom | last post by:
Hello guys Please have a look on following paragraph from ".NET Data Access Architecture Guide". ''''''''''' Although you can repeatedly use the same SqlCommand object to execute the same...
4
by: Agnes | last post by:
I am confused about these two things 1st)As form load I new a data adapter programmicaly , and I can use stored procedure to 'select sth ' and then fill into the dataset.by using binding context,...
4
by: Billy | last post by:
My Busn tier returns a DataSet and I want to fill a DataAdapter in the presentation layer with that dataset. Problem is that if I create a DataAdapter in the presentation layer i need to specify a...
3
by: Manfred | last post by:
Hi all How can I display the result of a sqlcommand select in a datagridview. I guess need a dataset as result to connet it as datasource to the datagrid? Thanks in advance
9
by: fniles | last post by:
I am using VB.NET 2003 and SQL2000 database. I have a stored procedure called "INSERT_INTO_MYTABLE" that accepts 1 parameter (varchar(10)) and returns the identity column value from that table....
1
by: Vadim Rapp | last post by:
Hello, in Visual Studio 2005/Visual Web Developer, if I add SQLCommand, SQLCommandBuilder,SQLConnection, SQLDataAdapter to the toolbox, they don't show up until I check "show all items"; then...
1
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using Visual Studio .NET 2003. I've set up a sqldataadapter using a sqlconnection for its selectcommand. All of it was created in the designer. I'd like to know how come this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
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.