Forum Replies Created

Viewing 15 posts - 346 through 360 (of 378 total)

  • RE: Linking to the Previous Row

    A CTE is a temporary result set, which is valid for the scope of a single Select Update Insert or Delete statement.

    BEWARE

    This claim is false, and proof is included. A...

  • RE: The Set-Based Limit

    Jeff Moden (1/22/2009)


    peter (1/22/2009)


    Jeff, any luck in finding the saved "function argument" you mentioned?

    No, sorry... I can't even remember who the "argument" was with...

    Touch a minimal set of...

  • RE: The Set-Based Limit

    Jeff, any luck in finding the saved "function argument" you mentioned? I would love to have a look at that earlyer discussion. BTW. This seems to be part of the...

  • RE: More Tips for New (and old) DBAs

    I like the article, especialy the part about saying NO. While I don't like the rigid attitudes it is a valuable instrument that usually pays off. It helps to think...

  • RE: Custom Pagination in SQL Server 2005

    phystech (1/10/2009)


    peter (1/10/2009)


    A primary key (identity or otherwise) cannot be used due to any sensible order by clause in the base query. Remember here that an order by on just...

  • RE: Custom Pagination in SQL Server 2005

    phystech (1/10/2009)


    Adam Haines (1/8/2009)


    ...First there should be some sort of filter in the first CTE. This way you can reduce the amount of data searched through...

    You are using...

  • RE: Custom Pagination in SQL Server 2005

    Adam Haines (1/8/2009)


    Peter,

    I love how you only return the totals in the first row of the output. this will definitely reduce the amount of data being returned to the...

  • RE: Custom Pagination in SQL Server 2005

    TheSQLGuru (1/8/2009)


    Peter, I couldn't really follow the code you had. Was it supposed to be just separate batch files or was some/all of it supposed to be wrapped up...

  • RE: Custom Pagination in SQL Server 2005

    First I am back a day later then I expected and definatly had hoped for, sorry for that. And please someone FIX this forum (smileys in code, persistent extended page...

  • RE: Custom Pagination in SQL Server 2005

    First impression....a lot of code (and a lot of work).

    I do not have the time to read the lengthy article in full but as the OP rightly articulated, the problem...

  • RE: The Set-Based Limit

    Jeff is quiet about my posts - too quiet....is a storm coming?

    LOL

  • RE: The Set-Based Limit

    To Jeff mostly,

    To bolster my claim about function overhead being the great killer in this debate.....I read your article about the function that you wrote for determining the number of...

  • RE: The Set-Based Limit

    Jeff,

    You be happy to know that your understanding of set based code and mine are 100% the same, going by what you posted in this threat. But still I cannot...

  • RE: The Numbers Table

    We might also need to make sure all tests are performed on a database with the same recovery modal (tempdb uses 'simple') and a comparable load if we are going...

  • RE: The Numbers Table

    Lynn Pettis (11/28/2008)


    Time to compare functions.

    In the code below I create a 1,000,000 row Tally table starting at 1. The table has one column, n. This is also...

Viewing 15 posts - 346 through 360 (of 378 total)