Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2003, 03:37 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQLDataAdapter class in ADO.net

Hi,
I'm new to ADO.net. We have classes like SQLDataAdapter and SQLDataReader. Inside SQLDataAdapter we have something called as "Selectcommand", "InsertCommand", etc. I wish to know the basic difference in these options. Is this related to isolation level?

Also how can we mention isolation level in the connection object?

Thanks,
 
Old June 18th, 2003, 07:18 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Varshan,

The different commands are used by the dataadapter to interface with the database. For example when you update the data from a data adapter the InsertCommand, UpdateCommand and DeleteCommand will run.

Hope this helps
 
Old June 18th, 2003, 07:31 PM
Registered User
 
Join Date: Jun 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to samlow82 Send a message via Yahoo to samlow82
Default

During Update, if this property is not set and primary key information is present in the DataSet, the InsertCommand can be generated automatically if you set the SelectCommand property and use the OleDbCommandBuilder.
 
Old June 20th, 2003, 06:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As far as isolation goes, you need to use transactions. Each command will have a property that can be set as a transaction objec (you can use different transaction objects or the same one) and changes are isolated until you commit the transaction, or rolled back if the transaction is aborted.





Similar Threads
Thread Thread Starter Forum Replies Last Post
SqlDataAdapter DanRoche .NET Framework 1.x 3 August 20th, 2007 04:04 AM
Difference between ADO and ADO.NET rakeshclose2u ADO.NET 2 April 23rd, 2007 03:57 AM
ADO AND ADO.NET royalsurej ADO.NET 1 November 8th, 2004 08:28 AM
sqlDataAdapter [email protected] ADO.NET 1 April 8th, 2004 12:28 AM
MSDE and SQL CE (using VB.NET and ADO.NET) LEGS ADO.NET 0 July 12th, 2003 11:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.