Forum Replies Created

Viewing 15 posts - 1,171 through 1,185 (of 5,841 total)

  • RE: Please help me improve the performance of this query

    Often a query as complex (and potentially WICKEDLY suboptimal) can take many hours to tune. Fortunately for you there seems to be a magic-bullet: and vru.Full_User_Name0 IN (@Assignee)

    So with...

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

  • RE: Make a CPU usage Report

    If you want to monitor SQL Server or diagnose MANY issues, you MUST get Glenn Berry's SQL Server Diagnostics Scripts.

    here is a spiffy query from there to see CPU history...

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

  • RE: Determining cost threshold for parallelism

    Eirikur Eiriksson (4/12/2016)


    TheSQLGuru (4/12/2016)


    The default of 5 for cost threshold for parallelism is almost universally too low. I don't know of a formula for setting a higher value, but I...

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

  • RE: Issues with CheckDB running long after MSSQL 2014 upgrade.

    Make sure tempdb is identical, and beefy!!

    I had a client that switched from Win 2012 to 2012R2 server and had a BAD experience with it and SQL Server. They actually...

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

  • RE: Issues with CheckDB running long after MSSQL 2014 upgrade.

    Argenis Fernandez has some great stuff out there about how to make checkdb run faster, along with Paul Randal.

    Check patch level. There were numerous fixes for checkdb.

    My question is...

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

  • RE: Determining cost threshold for parallelism

    The default of 5 for cost threshold for parallelism is almost universally too low. I don't know of a formula for setting a higher value, but I know pretty much...

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

  • RE: Possible root causes of 'tempdb' is full due to 'ACTIVE_TRANSACTION'

    Like I said, you have to have enough room to write the checkpoint stuff. 🙂

    tlog of tempdb is more like it.

    LOTS of potential culprits here. Got to observe...

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

  • RE: Possible root causes of 'tempdb' is full due to 'ACTIVE_TRANSACTION'

    I don't think CHECKPOINT will help with a full tempdb. Maybe a transaction log (but likely not then unless there is enough room to write a bit of stuff about...

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

  • RE: Possible root causes of 'tempdb' is full due to 'ACTIVE_TRANSACTION'

    It is critically important to gather as much forensics as possible before pulling the plug. Often with good diagnosis the sledge-hammer approach isn't even necessary. But regardless, if you...

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

  • RE: tempdb filled from ETL process

    Sergiy (4/7/2016)


    Siten0308 (4/7/2016)


    so i am inserting 1014193 rows, and it made a 175gig temp db data files grow

    Every record must fit into a single data page.

    A data page is...

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

  • RE: Restore help needed for 1.5 TB database.

    Excellent!

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

  • RE: Query help

    select from your hours table

    left join to your job status table

    use CASE WHEN js.something is null then 'failed' else 'succeeded' end as jobstatus

    this works because on the left join...

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

  • RE: tempdb filled from ETL process

    Well, if you are duplicating them in a temp table unnecessarily then they could be an issue. Of course updating rows isn't free either, especially when you make them larger...

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

  • RE: Generate Script for all Triggers on a Table?

    No worries mate. I sure wish those were on by default!

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

  • RE: tempdb filled from ETL process

    As long as the varchar(5000) fields don't actually have a bunch of stuff in them then they won't take up space. And if they DO have stuff in them, then...

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

Viewing 15 posts - 1,171 through 1,185 (of 5,841 total)