Advertisement

09.20.2007 at 08:51AM PDT, ID: 22841792
[x]
Attachment Details

Dataadapter, Sqlcommand, Update and Transaction

Asked by bobinorlando in .NET, Microsoft Visual Basic.Net

Tags: sqlcommand

Does it make sense to use a transaction to handle updates when already using a dataadapter, a dataset and a datagrid with a sqlcommand.update and sqlparameters that update the records?

In other words, generally speaking, is it overkill to use a transaction on top of the controls, and will the dataadapter essentially do the same thing as a transaction would?

And suppose I wanted to use a non-default isolation level, e.g. isolationlevel.serializable, would that affect whether a transaction is needed?

Thanks in advance.Start Free Trial
[+][-]09.20.2007 at 10:18AM PDT, ID: 19929870

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.20.2007 at 10:29AM PDT, ID: 19929960

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Microsoft Visual Basic.Net
Tags: sqlcommand
Sign Up Now!
Solution Provided By: RobertRFreeman
Participating Experts: 2
Solution Grade: B
 
 
[+][-]09.20.2007 at 10:35AM PDT, ID: 19930010

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.20.2007 at 10:50AM PDT, ID: 19930131

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628