Re: Is there ever a reason to have a transaction around a select..
- From: "Miha Markic [MVP C#]" <miha at rthand com>
- Date: Sun, 1 Apr 2007 21:21:36 +0200
Depends on default implicit transaction defined by database on what records you get.
Anyway, what exactly are "self-consistent" records?
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
"David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message news:82C164CA-07CB-4520-9779-593F604D7338@xxxxxxxxxxxxxxxx
I guess my question is if there is no transaction, will the ResultSet come
back self-consistent? I know a split-second later it could be wrong as an
insert or update can hit the table but that is also true with a transaction
after I call Commit after the select.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Miha Markic [MVP C#]" wrote:
It depends on your requirements but usually there is no need for (explicit)
transaction.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
"David Thielen" <thielen@xxxxxxxxxxxxx> wrote in message
news:88DB2D9D-01F6-403F-93AF-1CABC892247B@xxxxxxxxxxxxxxxx
> 1) that will always return 0 or 1 rows?
>
> 2) that will retun N rows?
>
> In each case where the results will be displayed to the user and so > there
> can be changes that occur to the DB after the select completes.
>
> -- > thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
>
> Cubicle Wars - http://www.windwardreports.com/film.htm
>
>
.
- Follow-Ups:
- Re: Is there ever a reason to have a transaction around a select..
- From: William \(Bill\) Vaughn
- Re: Is there ever a reason to have a transaction around a select..
- From: David Thielen
- Re: Is there ever a reason to have a transaction around a select..
- References:
- Re: Is there ever a reason to have a transaction around a select...
- From: Miha Markic [MVP C#]
- Re: Is there ever a reason to have a transaction around a select...
- Prev by Date: RE: GAC
- Next by Date: Re: Is there ever a reason to have a transaction around a select..
- Previous by thread: Re: Is there ever a reason to have a transaction around a select...
- Next by thread: Re: Is there ever a reason to have a transaction around a select..
- Index(es):
Relevant Pages
|
Loading