Forum Replies Created

Viewing 15 posts - 76 through 90 (of 380 total)

  • RE: Use Of Cursor Vs Simple While Loop

    Hugo Kornelis (4/21/2015)


    So I compare various ways of using ROW_NUMBER to run the while loop versus using IDENTITY to run the while loop.

    quote]

    As I said... Of your own making.

    Nothing to...

  • RE: Use Of Cursor Vs Simple While Loop

    Hugo Kornelis (4/21/2015)


    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less....

    This can be "fixed" by first storing...

  • RE: Use Of Cursor Vs Simple While Loop

    andrew gothard (4/21/2015)


    PHYData DBA (4/21/2015)


    Hugo Kornelis (4/21/2015)


    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less....

    This can be "fixed" by first storing...

  • RE: Illegal CTEs

    sknox (4/21/2015)


    Great. Now I'm trying to conceive of a situation where one would want to use PIVOT within a recursive CTE... :blink:

    Stop that. Just... NO! :hehe:

  • RE: Illegal CTEs

    Easy process of elimination answer. Although it makes no sense to me for a PIVOT to be in a recursive CTE...

    😎

  • RE: Use Of Cursor Vs Simple While Loop

    Hugo Kornelis (4/21/2015)


    I don't like the script, and I like the advice to use WHILE instead of CURSOR even less....

    This can be "fixed" by first storing the results of the...

  • RE: Use Of Cursor Vs Simple While Loop

    Ed Wagner (4/20/2015)


    g.britton (4/20/2015)


    Iwas Bornready (4/20/2015)


    Wow. There seems to be a lot of bad feelings for Cursors and While loops out there.

    Justified, for the most part.

    Yes, it's justified. ...

  • RE: Use Of Cursor Vs Simple While Loop

    Great Discussion Topic.

    Both scripts are useless as SQL. This is a great example of CURSOR, FLOW Control, PRINT and general SQL misuse.

    Never use an object until you understand...

  • RE: SELECT COUNT(*) vs DMVs to get row count

    GilaMonster (4/15/2015)


    PHYData DBA (4/14/2015)


    Then I would use SELECT count(*), GetDate() from <table name> to be certain.

    Counting every row in the table just to see whether the table has a row...

  • RE: SELECT COUNT(*) vs DMVs to get row count

    GilaMonster (4/13/2015)


    Sean Lange (4/13/2015)


    GilaMonster (4/13/2015)


    Not fixed. Large portions of the storage engine were rewritten between SQL 2000 and 2005.

    I would say that rewriting the storage engine is what "fixed" the...

  • RE: SELECT COUNT(*) vs DMVs to get row count

    sql-lover (4/10/2015)


    Thanks for the responses so far.

    I need 100% certainty. The DMV/count is needed to identify the table(s) with an empty set. A massive DDL change will be deployed against...

  • RE: What would Fill Factor Do?

    To anyone reading this thread. I know we went Off Topic there for a long period.

    It seemed like an important subject and one I had data to...

  • RE: What would Fill Factor Do?

    Wayne West (3/26/2015)


    That's a lot of memory pressure!

    It will use all that I set Max memory to until about 136 gigabytes.

    Why?

    Because the total Buffer Pool size of all...

  • RE: What would Fill Factor Do?

    Wayne West (3/26/2015)


    PHYData DBA (3/26/2015)


    Wow....

    <many things were here>

    Good Luck... 😎

    It'll be interesting. Right now the database, at about a third its population, isn't even 10 meg. It's...

  • RE: What would Fill Factor Do?

    Wayne West (3/26/2015)


    PHYData DBA (3/26/2015)


    Wayne West (3/26/2015)


    .....

    How do you argue that you want as many spindles as possible to separate the DB, Log, and TempDB from each other to...

Viewing 15 posts - 76 through 90 (of 380 total)