Forum Replies Created

Viewing 15 posts - 3,106 through 3,120 (of 5,841 total)

  • RE: CTE Performance Compared to a Temp Table

    patrickmcginnis59 (12/30/2011)


    TheSQLGuru (12/30/2011)


    I would try dropping off the PK from the table variable (note you do NOT have a temporary table here - it is a table var with many...

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

  • RE: CTE Performance Compared to a Temp Table

    I would try dropping off the PK from the table variable (note you do NOT have a temporary table here - it is a table var with many things that...

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

  • RE: Added index caused proc time to increase from 8 seconds to 5 minutes- caused by a function in the where clause

    Get a copy of the SQL Server MVP Deep Dives 2 book and read my chapter titled "Death by UDF" for some details on how devastatingly bad UDFs can be!!

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

  • RE: Design Advice - Partitioned Views or Partitioned Tables?

    1) I don't see where anyone asked this question so: WHY do you think you need/want partitioning at all? a few million rows per year is chump change unless...

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

  • RE: Problem with running total

    Sorry, but I am at a loss here. You are now dropping columns off of the T3 query. This is too complex (for me anyway) to help you...

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

  • RE: Problem with running total

    1) you still haven't provided what you think is the expected outcome for some set of rows that you think is giving you bad output.

    2) your use of month-to-date is...

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

  • RE: Tempdb 838GB's 2 mornings in a row

    Dev (12/14/2011)


    Ninja's_RGR'us (12/13/2011)


    TheSQLGuru (12/13/2011)


    ...

    That would be one HELL of a typo! 8 extra characters that actually spell out 2 appropriate words!?! 😎

    Go easy on the kid...

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

  • RE: Problem with running total

    1) your last set of sample data seems to be missing the last 5 or 6 commas between the 'fields' of data.

    2) you need to construct a SIMPLE set of...

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

  • RE: Tempdb 838GB's 2 mornings in a row

    Dev (12/13/2011)


    chetanr.jain (12/13/2011)


    sp_whoisactive == ?

    Does not seems to be familiar procedure.

    can anybody post the code for this procedure.

    Just a TYPO...

    sp_who [ [ @loginame = ] 'login'...

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

  • RE: Tempdb 838GB's 2 mornings in a row

    Unintended cartesian product is likely culprit here. You need to catch it while it is running however. sp_whoisactive can show you the currently executing query plan and statements...

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

  • RE: DataBase Enging Tuning

    Some of the worst things I have ever had to clean up at clients came from the unfettered use of DTA. Use it (without sufficient knowledge and thought) at...

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

  • RE: Query read values periodically go way up...

    I will go with parameter sniffing too. BTW, next time you see this you do NOT have to bounce the box to clear it!! You can run this: ...

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

  • RE: sp_prepexec and nHibernate

    I have seen issues at clients where the prep/unprep stuff was a huge perf issue because it was getting called a bajillion times for stuff that was only executed ONCE!...

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

  • RE: 3rd party performance tuning products these days?

    JamesMorrison (12/7/2011)


    TheSQLGuru (12/7/2011)

    1) The best option would be $10K worth of ME!!

    I am sure you are a talented and entertaining personality, but I am not seeking to hire anyone....

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

  • RE: Restoring a column within a table

    Altering the table to add the columns back in is going to be the first step I think. If you restore the most recent backup with the data in...

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

Viewing 15 posts - 3,106 through 3,120 (of 5,841 total)