Forum Replies Created

Viewing 15 posts - 826 through 840 (of 5,841 total)

  • RE: Query Suddenly Performing Badly

    lmarkum (8/5/2016)


    I forgot to mention that in these plans there will be a missing index recommendation on the NewsletterHistory. I don't understand the recommendation because the only place I...

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

  • RE: Lowest PLE value so far

    I couldn't care less about PLE, and in fact never check it. What matters is physical IO stalls. Track those via internal DMV and/or using avg disk sec/read and write...

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

  • RE: Query Suddenly Performing Badly

    Can you post up the two plans you spoke of for us to review please?

    The switch to nested loop is likely the cause of the vastly increased logical IOs. Spinning...

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

  • RE: inefficient query

    1) I am wondering if a CROSS APPLY for that COUNT(DISTINCT..) query would be better. Not sure if it would or not.

    2) Optimal indexing can easily result in 5-6 ORDERS...

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

  • RE: Object Explorer Details & undocumented system stored procedures

    Brandie Tarvin (8/3/2016)

    I appreciate the suggestion, Eric. But my hands are tied on third party software. We're not allowed to use unapproved stuff. Hence hacking SSMS Object Explorer Details is...

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

  • RE: Object Explorer Details & undocumented system stored procedures

    Luis Cazares (8/1/2016)


    Running profiler against the server then navigating through the object explorer details tab, generates different dynamic sql calls.

    AFAIK, that would mean that there's no stored procedure and those...

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

  • RE: Strange performance of simple query: sometimes fast, sometimes slow

    Thanks for the very interesting follow-up! I can't count the number of clients I have had over the years that have totally screwed up their virtualization efforts, often disastrously so!

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

  • RE: Log file Growth

    VastSQL (8/1/2016)


    Hi Experts,

    Have observed that the log file is growing huge because of Index Rebuild operation? Can anyone help me understand why?

    TIA

    My question is how are you doing your index...

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

  • RE: Excessive tempdb space required for DBCC CHECKDB?!

    Numerous potential causes here. You REALLY need to review the stuff you can find with a web search on these words:

    argenis fernandez dbcc checkdb

    There are some serious magic-bullets available, and...

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

  • RE: Performance tuning on Production systems ??

    I tune production systems for a living and have been doing this for about 20 years now. There are exceptionally few companies out there that have a test platform that...

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

  • RE: Trying to use the HASHBYTES of a nvarcar(Max)

    For several reasons I'm not to keen on a calculated column for the hashes, performance being an obvious one, I rather hash the content on the insert.

    SO VERY TRUE!! There...

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

  • RE: How to create blocking in SQL

    1) Why write your own script? Just use sp_whoisactive!! AMAZING FREE script from Adam Machanic.

    2) You typically need to use 2 connections to create blocking.

    spid1:

    BEGIN TRAN

    SELECT *

    ...

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

  • RE: Trying to use the HASHBYTES of a nvarcar(Max)

    1) Try CASTing it as the data type you want.

    2) What do you get when you do DATALENGTH(..) on your calculation?

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

  • RE: MERGE code works but not when called via stored procedure

    lk4772 (7/29/2016)


    Hello,

    I have a stored procedure that is only doing 1 thing - a MERGE command. When I run the code in the stored procedure, it is successful, as...

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

  • RE: Intent Exclusive Lock (IX)

    sudhakara (7/28/2016)


    Select statement is being executed through the session which holds the IX lock on the table. Not sure why the select statement holding this IX.

    The current SELECT statement currently...

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

Viewing 15 posts - 826 through 840 (of 5,841 total)