Forum Replies Created

Viewing 15 posts - 4,306 through 4,320 (of 5,841 total)

  • RE: Cursors Be Gone!

    clive-421796 (12/9/2009)


    Hi Jeff, posted as suggested.

    Post #831649.

    Topic: Replace cursor with while loop / compare cursor with while loop / optimize...

    I seem to be unable to locate said post. Anyone...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Cursors Be Gone!

    Jeff Moden (12/8/2009)


    I have two recommendations on that, Clive... first, post your question as a new post on the T-SQL forum because it'll will like get a better response there...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Cursors Be Gone!

    1) while loop is not a replacement for cursor. both are row-by-row processing.

    2) if you ARE going to use a cursor, please declare it either FAST_FORWARD or READ_ONLY STATIC...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar - Seek vs Variable - Scan

    1) the primary key 'scan': I will bet that your PK is an identity integer with clustered PK? In any case, the clustered index scan is actually a table...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: allocating memory for execution plan cache

    I will be there are other reasons cache hit ratio is poor. I also bet there are other performance-related problems here too.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: REPLACE Multiple Spaces with One

    Paul White (12/5/2009)


    Hey guys,

    I got a fantastic response to the connect item I filed concerning the collation performance thing. Check it out at http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=512459

    Extract:

    Jim Hogg MSFT


    I have assigned this...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Alternative to Over() sum and max applications?

    shannonjk (12/4/2009)


    So I managed to get this refactored finally, other critical projects took priority!

    I managed to squeeze the script down to 1 CTE and its subsequent Select statement. The high...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Dynamic where clause

    Dave Mason (12/4/2009)


    [font="Arial"]I prefer to avoid the IF/ELSE scenario for queries. Eventually, you'll have to "fix it" in two places. Plus, you open up the possibility of two...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Dynamic where clause

    UnionAll (12/2/2009)


    Thanks All,

    i used If/Else to do this...

    In this case that is by far the best solution: simple, maintainable, and most important gets you the optimal plan for either...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Crosstab query - Please help. it has been a few days without sleep

    Jeff Moden (12/3/2009)


    Heh... nope... I want the steaks. 😛

    Thought Pork Chops were your thing?? :hehe:

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Crosstab query - Please help. it has been a few days without sleep

    Jeff Moden (12/3/2009)


    TheSQLGuru (12/3/2009)


    Jeff, you silly person! My big smiley indicated that my pushing R2 was a JOKE. 🙂 I think it is in CTP3 stage or...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: help add column of repeating numbers 123412341234

    Tim - some questions shouldn't be asked!! 😀

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Crosstab query - Please help. it has been a few days without sleep

    Jeff, you silly person! My big smiley indicated that my pushing R2 was a JOKE. 🙂 I think it is in CTP3 stage or so ... ...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Crosstab query - Please help. it has been a few days without sleep

    OP: this would be SOOOO much easier if you would just give Jeff VPN access! 🙂 I also think you should be offering him at least $100/hour for his...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to write if else condition in Procedure

    I too have get incredibly ticked off with software entities (almost all of them unfortunately) putting unwanted crap in the boot partition!!! :angry:

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 4,306 through 4,320 (of 5,841 total)