Forum Replies Created

Viewing 15 posts - 2,821 through 2,835 (of 3,348 total)

  • RE: Compilation Locks

    Adi Cohn-120898 (5/12/2010)


    This is not a bug. Rowlock and pagelock are mutually exclusive, and both state to use either row locks or page locks as long as escalation to...

  • RE: Compilation Locks

    sjimmo (5/12/2010)


    Hugo,

    Mine has been more in the rowlock, nolock and tablock hints. I have had cases where the optimizer determined that the tablock was more effective than a rowlock and...

  • RE: Compilation Locks

    sjimmo (5/12/2010)


    Unfortunately, many think that a hint is law, and have spent many hours debating hints, as well as showing hints that work and then not work because the optimizeer...

  • RE: Compilation Locks

    sjimmo (5/12/2010)


    It slips me right this moment which hint it is, but for the scenario you describe, there is a hint that can be used in order to have the...

  • RE: Compilation Locks

    ziangij (5/11/2010)


    plz. suggest... what are the pros & cons of recompile option.

    Parameter sniffing.

    Basically, SQL Server has three ways to deal with constant values in a query:

    a) If it's a constant...

  • RE: Compilation Locks

    rVadim (5/11/2010)


    I'm a bit confused. Several of you suggested using "fully qualified names". But this usually refers to using all 4 parts: Server.Database.Schema.Object.

    Is that what you suggest we should use...

  • RE: Compilation Locks

    Thanks, Steve. Nice question to remind of us one more reason (hah! as if we'd need one!) to always fully qualify our object names.

    Small mistake in the explanation - is...

  • RE: Statement evaluation precedence

    Paul White NZ (5/8/2010)


    (...)

    Let us imagine that SQL Server supports the TOP OVER() construction in the next release -which logical description would you prefer then?

    Hi Paul,

    Good question!

    Thinking about it made...

  • RE: Statement evaluation precedence

    Paul White NZ (5/7/2010)


    Hugo Kornelis (5/7/2010)


    It's not my habit to disagree with Itzik, but in this case I have to make an exception.

    Me either 😉 However, I think there...

  • RE: Statement evaluation precedence

    CirquedeSQLeil (5/7/2010)


    Paul White NZ (5/7/2010)


    CirquedeSQLeil (5/6/2010)


    Though I got this correct, it appears there is a typo in the correct answer. My version had the last two flip-flopped based on...

  • RE: Clustered indexes

    dunnjoe (5/7/2010)


    I believe this explanation is incorrect for the way the question was asked. Your question asked if the rows were physically or logically ordered, not if the pages were...

  • RE: Statement evaluation precedence

    Tom Brown (5/7/2010)


    I attach my test script, where I was attempting to confirm the validity of my 10-year-old slip of paper, by looking at actual execution plans, and matching...

  • RE: Using IDENTITY as a key column

    Hugo Kornelis (5/7/2010)


    And if you never use the identity column in queries, then the best way to improve performance is to drop that unused column.

    What if it's only there to...

  • RE: Clustered indexes

    Jan Van der Eecken (5/7/2010)


    Paul White NZ (5/6/2010)


    On the physical ordering thing, I would just add that individual rows on the page may not be in physical clustered index either...

  • RE: Using IDENTITY as a key column

    Toreador (5/7/2010)


    vignesh 38804 (5/7/2010)


    Index on identity column improves performance

    If you never use the identity column in queries but only use it as a primary key then doesn't it actually make...

Viewing 15 posts - 2,821 through 2,835 (of 3,348 total)