Forum Replies Created

Viewing 15 posts - 22,831 through 22,845 (of 49,552 total)

  • RE: Enable/Disable Trigger

    Use Database

    disable trigger dbo.triggername on dbo.tablename

    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: Corrupted Execution Plan

    GilaMonster (10/21/2011)


    Plans don't get corrupted.

    Could be parameter sniffing, could be (but probably isn't) stale statistics, could be a bunch of other related things.

    It's hard-impossible to say more without seeing at...

    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: Change Database Status from Shutdown to Normal

    Try taking the affected DB offline and then online (alter database ... set offline, alter database ... set online)

    If that doesn't work, post any 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: Corrupted Execution Plan

    Plans don't get corrupted.

    Could be parameter sniffing, could be (but probably isn't) stale statistics, could be a bunch of other related things.

    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: Information of production environment

    You were hired as a DBA?

    How much experience do you have as a DBA?

    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: PRINCIPAL SERVER goes in "In Recovery"

    Google down?

    For lots of transactions, wait. There's nothing else that can be done there (especially if the failover was uncontrolled)

    For VLFs - http://www.sqlskills.com/BLOGS/KIMBERLY/post/8-Steps-to-better-Transaction-Log-throughput.aspx

    Also, what's the sizes of the mirroring redo...

    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: CPU Utilization is 100%

    Optimise your queries, tune your indexes. High CPU utilisation is most commonly from badly performing code.

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    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: Index Rebuilds

    Ninja's_RGR'us (10/21/2011)


    What I had understood from Paul's video is that there was no difference in the log backup size hence my comment about the no difference.

    There won't be 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: Index Rebuilds

    More details than Paul's videos? No, except maybe his training courses.

    Index rebuilds are bulk operations. They are fully logged in full recovery (entire page images are logged), they can be...

    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: Extracting Data from a Database the has Corruption

    Query for small ranges of data using the clustered index key. Lots of work, but you can avoid the corrupt portions of the tables that way.

    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: Does truncate table runs the update statistics also?

    No. The only thing that updates stats are index rebuilds, auto stats updates and UPDATE STATISTICS. However truncate, setting the rowcount to 0, will ensure that autoupdate gets triggered 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: PRINCIPAL SERVER goes in "In Recovery"

    Lots of VLFs

    Large tranactions to roll back.

    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: Index Selectivity Ponderings

    That 'best practice' is at best vague. There's far more in consideration than just selectivity.

    Selectivity is irrelevant when the index is covering. It's very important when the index is not...

    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: Covering Indexes

    goetz.gaertner (10/20/2011)


    If you have already a clustered Primary Key , which is an Clustered Index,

    you have the columns of this already in any Nonclustered Index. So you

    don't have to include...

    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: Duplicate Plans in the cache

    Those DMVs are server-wide. There's nothing about that query that is restricted to one DB over another.

    What do you mean by 'doesn't work'? Throws an error? Returns no data? Sucks...

    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 - 22,831 through 22,845 (of 49,552 total)