Forum Replies Created

Viewing 15 posts - 3,331 through 3,345 (of 5,841 total)

  • RE: CXPACKET wait type with zero wait time

    1) cost threshold for parallelism of 5 is almost universally too low. I recommend 10-15 for oltp-type boxes and 25-40 for olap boxes, then monitor for cxpacket waits.

    2) max...

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

  • RE: Memory Allocation on Virtual Server

    1) you do NOT want /PAE on with /3GB.

    2) why in the world is someone building a windows server 2003 box in this day and age?? it was...

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

  • RE: Can this be converted to a set based query?

    1) try queries with OPTION (MAXDOP 1), just for posterity's sake

    2) if this query can't possibly result in duplicates, use UNION ALL instead. that will avoid a SORT/DISTINCT operation:

    SELECT itp.InvoiceKey,...

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

  • RE: Couple of questions about trigger

    1) NEVER EVER put inserted/deleted values into variables (unless you are doing a cursor in the trigger, in which case you have other problems). :w00t: I guarantee you without...

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

  • RE: Can this be converted to a set based query?

    WayneS (6/7/2011)


    TheSQLGuru (6/7/2011)


    I was giving my own presentation @ sqlsat77 while yours was in progress. 😀

    Ah, so you were. I heard it went pretty well.

    As long as they have fairly...

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

  • RE: Can this be converted to a set based query?

    WayneS (6/7/2011)


    TheSQLGuru (6/7/2011)


    I applaud you Wayne for thinking outside the box on this with a switch to an mTVF. I am sure you aware that the optimizer can no...

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

  • RE: Can this be converted to a set based query?

    I applaud you Wayne for thinking outside the box on this with a switch to an mTVF. I am sure you aware that the optimizer can no integrage the...

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

  • RE: Can this be converted to a set based query?

    WayneS (6/7/2011)


    cgrammont (6/7/2011)


    I have really nothing of significance to add. But I'd like to say "thank you" for going through this problem for everyone to see. The thought process, going...

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

  • RE: View with many tables and poor performance

    dji (6/6/2011)


    For anyone remotely interested!!

    I bought a new laptop recently, intel i7 quadcore, 4gb ram. Loaded SQL 2008 R2 attached my db featured in this thread and ran this query.

    Return...

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

  • RE: Can this be converted to a set based query?

    I just spent a few minutes looking at one of your later plans. It is my belief that you have no hope of significant improvements based on your current...

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

  • RE: Log file location defaulting when drive not available - any way to stop this?

    I am at a loss. I have never heard of this happening other than for attach/create for attach rebuild log type scenarios.

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

  • RE: stored proc occasionally hangs?

    sqldba_icon (6/6/2011)


    Thanks everyone. I don't think it is parameter sniffing issue because it doesn't take any parameters at all. Mentioned below is the query where it occasionally hangs.

    sELECT Row_number()...

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

  • RE: Log file location defaulting when drive not available - any way to stop this?

    Shark Energy (6/6/2011)


    Yeah I must admit I was surprised.

    The chain of errors reads -

    - Device activation error. The physical file name 'E:\Program Files\MSSQL\Logs\reporting_log.LDF' may be incorrect.

    - Attempting to rebuild primary...

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

  • RE: Log file location defaulting when drive not available - any way to stop this?

    Shark Energy (6/5/2011)


    We have 2 larger databases that had their logs moved to a virtual drive as they were too big.

    During a recent outage the physical server was brought back...

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

  • RE: Data/Log - Separating them

    PhilipC (6/5/2011)


    I'm not much of a disk expert at all, and after requesting a new server by the SAN administrator for split Data and Log drives he came back with...

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

Viewing 15 posts - 3,331 through 3,345 (of 5,841 total)