Forum Replies Created

Viewing 15 posts - 1,501 through 1,515 (of 5,841 total)

  • RE: Trying to get running Total in SQL Server

    Although the defaults for the over clause do imply "and current row", I prefer to spell them out rather than relying on the defaults.

    One should ALWAYS explicitly fill...

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

  • RE: Disaster Recovery - 15000 Databases

    I am probably one of the most qualified out there to answer this, since I actually have run 7400+ databases on a single (SQL 2005) server and managed to do...

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

  • RE: Running totals with OVER clause

    Thanks for that Jason!

    When I want to test the server performance of a large set I usually do it thusly:

    declare @var1, @var2, @var3, @var4, @var5 (appropriate definitions here)

    SELECT

    @var1 =...

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

  • RE: I need help with this query.

    Please give us create table statements and inserts to set up the data the way you list it. Then we can give you a statement to reproduce your desired results....

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

  • RE: Running totals with OVER clause

    Several things:

    1) Main one is that you are putting NULL into the running total column to start. You KNOW you are creating fragementation with page splits. So why didn't you...

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

  • RE: Running totals with OVER clause

    Jason, I don't think we can call your test apples-to-apples, at least not "real-world" anyway. At least 95% of the real-world running totals cases I have ever seen are a)...

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

  • RE: Why does SQL choose the "wrong" index

    Grant Fritchey (5/28/2015)


    TheSQLGuru (5/28/2015)


    Also, I was leery of adding OPTION (RECOMPILE) for something that runs that often.

    This is SIGNIFICANTLY misguided, IMHO! I will jump through EXTRAORDINARY hoops these days...

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

  • RE: Running totals with OVER clause

    Done correctly (i.e. with ROWS instead of the default RANGE), the enhanced WINDOWING functionality blows away even the Quirky Update method for Running Totals. Here is a great blog...

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

  • RE: Why does SQL choose the "wrong" index

    Also, I was leery of adding OPTION (RECOMPILE) for something that runs that often.

    This is SIGNIFICANTLY misguided, IMHO! I will jump through EXTRAORDINARY hoops these days to trade CPU...

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

  • RE: SQL Server 2012 perfomance when using Disk Span

    raf.figueroa (5/27/2015)


    Kevin,

    I am not sure where did the 6 disk come from? in my original posting the scenario is to use 2 (two) 6TB disk, when spanned the two disk's...

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

  • RE: SQL Server 2012 perfomance when using Disk Span

    raf.figueroa (5/27/2015)


    Hi,

    I plan to implement the disk spanning feature in Windows Server 2012 in order to create a single 12 TB volume (using 2 x 6TB disks). The new...

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

  • RE: Why does SQL choose the "wrong" index

    GilaMonster (5/27/2015)


    Bad cardinality estimations perhaps. Can you post the problematic plan?

    99.x% it is this, or plan caching got you a plan for inputs that were optimal for that set but...

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

  • RE: SQL Server 2012 - High Memory Usage

    Eirikur Eiriksson (5/23/2015)


    TheSQLGuru (5/23/2015)


    This thread has become a laundry list of worst practices!! 🙂

    That by itself presents an opportunity, care to do a write up?

    😎

    Nope, sorry. I don't like to...

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

  • RE: SQL Server 2012 - High Memory Usage

    This thread has become a laundry list of worst practices!! 🙂

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

  • RE: SQL Server 2012 - High Memory Usage

    I have had several clients have significant problems with McAfee on production servers, especially SQL Servers. I have never had a client use McAfee on a SQL Server with success.

    Has...

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

Viewing 15 posts - 1,501 through 1,515 (of 5,841 total)