Forum Replies Created

Viewing 15 posts - 3,106 through 3,120 (of 49,552 total)

  • RE: AlwaysON with different versions

    In that case, it should be fine. Start with all SQL 2014 replicas in an AG and upgrade them one by one.

    https://msdn.microsoft.com/en-us/library/dn178483.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: AlwaysON with different versions

    No (with caveat).

    The root reason here is that databases cannot be downgraded, nor can log structures. So while it should be possible to have a primary replica on 2014 and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Please provide t-sql script SQL queries Executed from last 24 hours with Data and time stamp

    Unless you had some custom monitoring, you're not going to get that.

    You can query the plan cache (sys,dm_exec_query_stats cross apply sys.dm_exec_sql_text) to get the text and last execution time of...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Sql Server 2012 Performance Challenge

    I'd recommend extended events on 2012. Add in the QueryHash column and the aggregation is trivial to do in T-SQL, no need for string comparisons for ad-hoc queries any longer.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Sql Server 2012 Performance Challenge

    Identify the queries using the most CPU and tune them. This may not be the most expensive individual queries, probably isn't. The query that runs once an hour for 5...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Help in fixing LCK_M_IX issue

    I don't delete one row at a time, but if there's a where clause that defines which rows to delete, it's pretty easy to delete batches in a while loop,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Help in fixing LCK_M_IX issue

    Other than high values of something that doesn't mean too much alone, is there a problem here?

    Are the inserts getting adversely affected by the deletes? Is the delete running too...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Need some help transposing a query

    It's unlikely to save any time, CTEs aren't inherently slow.

    I took the nolock hints out, as I suspect you probably don't want incorrect results every now and again. If you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Considerations for Switching from the Full to Bulk-Logged Recovery Model

    The log backup will be the same size, or even larger, as any extents affected by the minimally logged operation are copied into the transaction log backup. The advantage is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Sean Lange (5/4/2016)


    WayneS (5/4/2016)


    Anyone else having trouble receiving the SSC newsletters? I just received Saturday's "Database Weekly", and I haven't received any of the daily ones this week.

    Yeah they seem...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to trim away the first 'x' and last 'y number of characters from a string

    Replace 'y' with the number of characters to trim off the end

    DECLARE @str VARCHAR(100) = 'adventure-works\peter0'

    select substring(@str,17,LEN(@str)-(17-1) - y)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Best Bookstores List

    Any good bookshops in London? (for next time I visit)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    Brandie Tarvin (5/4/2016)


    GilaMonster (5/4/2016)


    jasona.work (5/4/2016)


    GilaMonster (5/3/2016)


    jasona.work (5/3/2016)


    GilaMonster (5/3/2016)


    jasona.work (5/3/2016)


    Heh. I'm picturing a company where their "office" is nothing more than a cage in a CoLo facility that once a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Always On Availability Group - Log Backup on Secondary

    aaron.chapman (5/4/2016)


    I guess this is because the Copy Only backup does NOT initialize the log chain.

    It should initialise the log chain, copy-only is on a full backup supposed to only...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Are the posted questions getting worse?

    jasona.work (5/4/2016)


    GilaMonster (5/3/2016)


    jasona.work (5/3/2016)


    GilaMonster (5/3/2016)


    jasona.work (5/3/2016)


    Heh. I'm picturing a company where their "office" is nothing more than a cage in a CoLo facility that once a month or so...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 3,106 through 3,120 (of 49,552 total)