Re: C#, ADO.NET and MS-SQL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 07/19/04


Date: Mon, 19 Jul 2004 15:13:35 +0100

Daniel Billingsley <dbillingsley@NO_durcon_SPAAMM.com> wrote:
> Jon, I recently did some investigation into this very topic. It turns out,
> no, read transactions won't prevent the kind of data "error" you describe,
> as Sql Server read transactions (as per ANSI) only lock each row as the
> cursor reads it.

Yuk. That's really horrible...

> Apparently Oracle works the way you describe, by using a sort of change log
> and using it to retrieve the state of each requested row as of the time you
> started the transaction. I was told that's one of the reasons why
> performance tuning is so critical and demanding for Oracle (you can imagine
> the work required to accomplish such a thing).

Yup.
 
> I would imagine this has been a barrier to Sql Server's use in areas like
> financial, where read integrity as you described is everything to the
> application.

I would have thought integrity would be vital to pretty much *every*
application though!

> Yukon is supposed to have a similar option per Feb 2004 MSDN magazine.

Goodo - I'll see if I can have a look at that.

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Observer pattern limitations
    ... that's exactly what you must do or you won't have integrity. ... transactions cannot enforce integrity. ... class Mandelbrot: public Window ... The two mutable members represent dependents. ...
    (comp.object)
  • Re: ADO.NET Transaction
    ... The SqlBulkCopy class can take anything you can expose with a DataReader and send it to SQL Server in a single high-speed operation. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Client transactions put too much schema-dependent, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET Transaction
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Is it always a bad reason to do client transactions? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO.NET Transaction
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... Client transactions put too much schema-dependent, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Table Analyzer and Normalization
    ... schema via update queries - while still maintaining referential integrity. ... > you could put one over on your DBA and install MySql somewhere. ... in fact installed MySQl and an evaluation copy of SQl server too. ...
    (microsoft.public.access.tablesdbdesign)