All About Transactions - Part 3

  • Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/dpet

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

  • Thanks you very much for writing this wonderful article. does sqlserver2005 locking machnism changed?  e.g. no lock on normal read.

  • Unfortunately I haven't had much time to play with the early Beta of SQL 2005.  However, from what I have seen and heard, the locking will remain largely the same with one addition.  Database views (at least that's the name that was being used when I last heard them discussed) preserve the database as it existed at a given point in time without being a full copy.  Queries against the database view will be satisfied by looking at the "live" data unless the view contains some changes.  This isn't quite the same thing at Oracle's Rollback Segments but it sounds like it might be a good "split the difference" sort of solution.  I will point out again that I haven't actually used this functionality and I don't know the details of what this will mean for transactions and Locking...

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

  • that sound like Oracle "materialized view" in 8i/9i, or snapshot in oracle8. used mostly in data warehouse or distributed database environment.

  • Not really, SQL Server already has Indexed views which are the same thing as Oracle's materilaized views. 

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

  • I really enjoy All About Transactions - Part 3.I am interested in to hear about your new  article which covers Bound Connections, Distributed Transactions .

     

  • Thank you for writing an easy to digest article.

    Try BOL......makes my head spin.

     

  • Thanks for a great article which clearly explains the balance between isolation and concurrency. I have had to make extensive use of (NOLOCK) in reports to obtain good conurrency because the application I support creates uncommitted transactions every time you open a new form.

    I understood from BOL that locking hints were HINTS, and that SQL Server 2000 will ackonwledge them, but will override the hint and select a more suitable level of lock granularity if the operation demands. So selecting WITH (ROWLOCK) when you are updating the majority of rows in a table is likely to be overridden in favour of page or table locks.

    David

    If it ain't broke, don't fix it...

  • I know I'm about 6 years behind on this article... but when's the next one comming out? You promess more info but apparently you got sucked into work and didn't have time to do it...

  • Thanks, I've been pretty busy at work and home (but aren't we all?) The truth be told, I guess I just blew it off so long that I got out of the habit of looking for ideas for articles. .. I will try in the next few months to dust off the old articles and maybe update them for 2005/2008.

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

  • You can always e-mail me the rough versions of the incomplete articles... might be enough to qench my thirst for now :-P.

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply