Forum Replies Created

Viewing 15 posts - 5,236 through 5,250 (of 49,552 total)

  • RE: Changing Compatibility Mode From 90 to 110

    Test your app end to end. I've recently used distributed replay to do similar, though I was looking for performance regressions due to the optimiser changes in SQL 2014.

    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: Changing Compatibility Mode From 90 to 110

    Being in compat mode 90 does not stop you from using 2012 features. The compat mode is only there to tell the query processor how to handle syntax where the...

    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: Why you are not getting error with this?????????

    Because there's nothing wrong with that syntax.

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

    Rules for Regular Identifiers

    The names of variables, functions, and stored procedures must comply with the following rules for Transact-SQL identifiers.

    ...

    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: Optimising join with a CASE statement

    The CASE prevents any index usage on the settlement_key columns. No hints or columnstore is going to change that. If the join is the cause of it being slow (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: Evaluated drop table and ignore current context

    Because SQL's execution model is parse, bind then execute. The entire module (procedure) is parsed and checked for validity before any part of it starts executing. The incorrect column errors...

    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: Replication Test Environment

    Welsh Corgi (7/19/2015)


    Do you have a test environment?

    Always, for everything that's going to production.

    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 transaction log filling up

    Ok, so not a copy-only and it looks like they finally took the notruncate option out of maint plans.

    Have you tried increasing the frequency for log backups?

    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: LazyWrites is high?

    You need further calculations (which a google search should turn up, I don't have code on hand), or instead go and look at the counters in perfmon instead.

    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: Triiger to execute a proc

    To start with, unless you're using several thousands of characters of XML for login names, this piece isn't going to work correctly.

    SET @data = EVENTDATA();

    SET @login = CAST(@data AS VARCHAR(max));

    EXECUTE...

    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 2008 Ran out of Disk Space

    Providing you have both the mdf and the ldf, it should be fine. Attaching just the mdf will fail.

    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 transaction log filling up

    Screen shot of the properties of the log backup task please, the stuff you specified is completely unimportant.

    Availability groups shouldn't cause a LOG_BACKUP wait.

    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 transaction log filling up

    No, you don't need to shrink it. Shrink only removes empty space from the log, so all you've done with the shrink is removed the free space SQL would have...

    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: Row locks not escalating to table locks after 5000

    Check the headers of the pages which have the page locks at the end of the second insert. See if they're pages which are no longer allocated. Pages deallocated by...

    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: Query Performance

    We still haven't answered the most important question.

    Is this query a performance problem?

    If so, have you tried the usual methods of tuning queries?

    You're suggesting complicated and unusual 'solutions' to something...

    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: Row locks not escalating to table locks after 5000

    I'm not spending another couple hours redoing this all on 2012. Not on a Saturday evening.

    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 - 5,236 through 5,250 (of 49,552 total)