Forum Replies Created

Viewing 15 posts - 706 through 720 (of 5,841 total)

  • RE: Solving FIFO Queues Using Windowed Functions

    Very nicely done Drew!

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

  • RE: Very bad performance on a good HP DL380 Gen9 Server

    The Guru's Tuning Big 3:

    sp_whoisactive

    differential file IO stall analysis

    differential wait stats analysis

    I note that sp_whoisactive can do a differential run itself with a parameter setting. One or more of those...

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

  • RE: Memory optimized table: The current transaction failed to commit due to a serializable validation failure

    Stephanie Giovannini (10/5/2016)


    Memory optimized tables are fairly new to me, and apparently to the third party who has written these procedures. While investigating this issue, I saw the retry logic...

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

  • RE: Memory optimized table: The current transaction failed to commit due to a serializable validation failure

    The range-based nature of SERIALIAZABLE is likely getting you here, especially given that you have concurrent INSERT/DELETE/UPDATE activity. If those nonclustered indexes are RANGE based they could well be involved....

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

  • RE: Monthly total of active data

    My sick and tired (literally, on both of those 🙁 ) brain is telling me that there is a very efficient single-pass solution here using SUM(CASE...). But sadly I don't...

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

  • RE: Log Truncation and Database Mirroring

    use this to see how big and how full your tlog files are:

    DBCC SQLPERF(LOGSPACE)

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

  • RE: Log Truncation and Database Mirroring

    Shrinking a tlog file that is full of stuff is extra silly. It could be partially full due to a variety of reasons and artifacts about how logging and flushing...

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

  • RE: Looping through rows and applying a count

    Jeff Moden (10/4/2016)


    The only time that performance takes a back seat for me is if accuracy is not otherwise able to be achieved.

    And you, sir, would be one of those...

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

  • RE: Looping through rows and applying a count

    drew.allen (10/4/2016)


    TheSQLGuru (10/3/2016)


    This sure does seem a LOT simpler, and easier for a newbie (and this old brain too!) to understand:

    SELECT t2.name, COUNT(*)

    FROM dbo.#stat t1

    --get the G...

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

  • RE: Log Data Being Read/Queried

    Try a network monitor to capture packets and shred contents to look for text that is of interest.

    I'm not quite sure what you mean about not being able to see...

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

  • RE: Looping through rows and applying a count

    watto84 (10/3/2016)


    Problem solved on the large data set, i worked out I just needed to apply a clustered index to my table 🙂 Sorry.....Newbie 🙂

    Thanks for your help though, easy...

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

  • RE: Log Truncation and Database Mirroring

    szejiekoh (10/3/2016)


    TheSQLGuru (10/3/2016)


    szejiekoh (10/3/2016)


    Hi all,

    I understand that mirroring is no longer recommended but the setup exists in my current environment

    I am trying to understand the portion on log truncation between...

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

  • RE: Looping through rows and applying a count

    This sure does seem a LOT simpler, and easier for a newbie (and this old brain too!) to understand:

    SELECT t2.name, COUNT(*)

    FROM dbo.#stat t1

    --get the G events for...

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

  • RE: Log Truncation and Database Mirroring

    szejiekoh (10/3/2016)


    Hi all,

    I understand that mirroring is no longer recommended but the setup exists in my current environment

    I am trying to understand the portion on log truncation between alwayson availability...

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

  • RE: Configuring Logshipping for 7 TB database

    prem.m38 (10/3/2016)


    I want to configure Log shipping for 7 TB database in sql server 2014(EDW environment) and we are using commvault as a backup tool, weekly full backup happens on...

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

Viewing 15 posts - 706 through 720 (of 5,841 total)