Forum Replies Created

Viewing 15 posts - 1,156 through 1,170 (of 5,841 total)

  • RE: replication or log shipping

    jeff.mason (4/15/2016)


    Snargables (4/15/2016)


    but u can log ship from enterprise to standard?

    Yes.

    I haven't tried it, but I wonder what happens when you do this and then create something on the Enterprise-edition...

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

  • RE: Performance issue with Query

    The file for that single query is 6.5KILOBYTES!! I have spent a dozen or more hours many times the past trying to decipher and fix stuff like that at clients....

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

  • RE: ISNULL VS COALESCE on nullible and not null columns Sargability comparison

    ScottPletcher (4/15/2016)


    The simplest rules is:

    Never use ISNULL in a WHERE or JOIN clause.

    Whether the column is nullable or not is irrelevant.

    The proper way to code this:

    where isnull(SalesOrderID,-1) = 43665 --NEVER!!

    is...

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

  • RE: ISNULL VS COALESCE on nullible and not null columns Sargability comparison

    Hugo Kornelis (4/15/2016)


    TheSQLGuru (4/15/2016)


    Wrapping a function around a column in the WHERE clause is probably the second worst thing I see in aggregate in my consulting (with the first being...

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

  • RE: ISNULL VS COALESCE on nullible and not null columns Sargability comparison

    <RANT ON>

    Wrapping a function around a column in the WHERE clause is probably the second worst thing I see in aggregate in my consulting (with the first being mismatched...

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

  • RE: How to avoid locking/ daed locking while altering table

    Stop allowing users to modify the schema of a table via a GUI. This MUST be a CONTROLLED evolution for numerous reasons, including the one that is giving you fits.

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

  • RE: updating statistics for big tables

    1) Buy better hardware? How much RAM do you have and what is the throughput you get from your IO subsystem for a large scan?

    2) I usually recommend for my...

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

  • RE: replication or log shipping

    SQL 2016 has a LOT of wins, but I don't know of one here for you. You can now do a "Basic Failover Group" on Standard Edition, but it is...

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

  • RE: Creating an Index Strategy

    Grant Fritchey (4/14/2016)


    Jeff Moden (4/14/2016)


    That's what I thought, as well, but even on the predominately "batch-needs-scans" databases, performance hasn't suffered. Heh... of course, that could be because that code...

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

  • RE: replication or log shipping

    Jon.Morisi (4/14/2016)


    Mirroring does not allow for readable secondary.

    In order to read the secondary for log shipping you'll have to enable STANDBY mode and there's potential that users will...

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

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

    Lynn Pettis (4/14/2016)


    Sean Lange (4/14/2016)


    Mike Frazer (4/14/2016)


    Thank you...attached.

    Edit: I added the DDL for the related objects as scripts.txt

    Those nested views are going to kill your performance something fierce. They...

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

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

    Like I said, I would rather see the code of the UDF and the objects it hits more than the query plan in this (very rare) case since when you...

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

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

    When you reply to the thread, check the lower-right of the window. Button called "Edit Attachments".

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

  • RE: Creating an Index Strategy

    Jeff, the next time you and I are together FTF (SQL Saturday or PASS Summit?) we need to have a long, detailed talk about the things you state below. I...

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

  • RE: Executing Functions From Table Column

    UDFs (Scalar and Multi-statement Table Valued Functions) are UNBELIEVABLY BAD!!!! If you want some details, grab a copy of the SQL Server MVP Deep Dives 2 book (proceeds go to...

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

Viewing 15 posts - 1,156 through 1,170 (of 5,841 total)