Forum Replies Created

Viewing 15 posts - 526 through 540 (of 5,841 total)

  • RE: Generate Deadlock Summary Information

    Your description of TF 1204 is not correct. Please revise the article. Also, I am not sure why you would want two trace flags on that both record deadlock information....

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

  • RE: CPU vs memory issues

    Also look up Glenn Berry SQL Server Diagnostic Scripts and pick the one for your version of SQL Server. Numerous queries in there to find the top worst offending queries...

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

  • RE: GROUP BY in SQL Server 2014

    GilaMonster (12/13/2016)


    Gut feel: there's a TOP without an ORDER BY.

    Good choice. There are other reasons, but I would go with this one as well.

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

  • RE: SSMS database usage report - unused space

    Does the table have a clustered index on it? If not it is a HEAP table. Deleting records from those (without TABLOCK) will NOT deallocate empty pages. I have seen...

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

  • RE: Query runs MUCH slower when using sp_prepexec

    Data value skew is the most likely cause. Or at least statistics that reflect that. Your direct query is giving the optimizer the exact value it needs to optimize for...

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

  • RE: Let the optimizer do it's thing -- wrong

    GilaMonster (12/12/2016)


    Indianrock (12/12/2016)


    Why would SSDs generate deadlocks?

    It doesn't generate deadlocks, just facilitates them.

    If your workload currently is IO-bottlenecked (quite common), then the IO latencies are slowing things down. Remove those,...

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

  • RE: Let the optimizer do it's thing -- wrong

    1) You know what I do when I get called in to a new client that is using an ORM? I go KAAAACCCCHHHIIIIINNNGGGG! 😀 I know there is going to...

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

  • RE: Stored Procedure help

    It would REALLY help if you would give us a create table statement with sample data INSERT statements and sproc calls and their actual output and what you think the...

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

  • RE: Stored Procedure help

    I'm with Wryan138 here: CASE statement (my favorite TSQL 4-letter word!!) #FTW

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

  • RE: Is there a way to extract only credit card numbers from text

    All-better-fixed! 🙂

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

  • RE: Is there a way to extract only credit card numbers from text

    Very slick! Sadly I seem to be unable to get to the SQLSharp.com website via multiple browsers. 🙁

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

  • RE: Let the optimizer do it's thing -- wrong

    Indianrock (12/9/2016)


    Comment from a co-worker dba. We probably shouldn't have turned on forced parameterization years ago, since all application sql is parmameterized and only prod support add hoc work...

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

  • RE: How to pass parameters from outer procedure to inner procedure

    joeroshan (12/9/2016)


    Why don't you pass the parameter like

    If @alloc_id < 0

    exec proc2 @alloc_id

    Yep.

    An ELSE may be needed to complete the needs of the OP.

    Note that I ALWAYS urge clients to...

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

  • RE: Output on conditional date logic

    Jacob Wilkins (12/9/2016)


    Just in case anyone else happens upon this and is temporarily confused as I was, the accepted solutions do include a row for CustomerKey=4 in their results, which...

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

  • RE: How to pass parameters from outer procedure to inner procedure

    We need to see some code to help you. Doesn't have to be full-blown sproc, but must cover your issues completely.

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

Viewing 15 posts - 526 through 540 (of 5,841 total)