Forum Replies Created

Viewing 15 posts - 17,956 through 17,970 (of 49,552 total)

  • RE: CPU Pressure: Confirmation

    Oohd (6/20/2012)


    So the apparent, constant, 'busyness' of the CPU could be just down to the number of requests being asked of SQL Server? With that in mind, I need to...

    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: gaps after restarting SQL server 2012

    jeff.mason (6/20/2012)


    If the value of the PK is vital, and gaps cannot be supported, I'd look at implementing one of 2012's new features -- a SEQUENCE.

    Sequences and identities...

    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: Concatenate 4 Columns with Dynamic SQL

    SET @DynSQL = 'SELECT COL1 + '' - '' + COL2 FROM TableName'

    Quote problems....

    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: Logon Trigger

    Check what's holding locks (probably a sch-S) lock on the trigger (sys.dm_tran_locks), see if you can kill whatever that is.

    p.s. What was your broken login trigger?

    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: Count Rows of a table Without using Count() Function

    <pedantic mode on>

    sysindexes and sysobjects are deprecated, should not be used in new development, will be removed from a future version of SQl Server, are included only for backward compatibility...

    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: Model data base is corrupted

    Depends how bad the corruption is, but typically restore model from a clean backup. Books Online has a section that describes restoring the system databases.

    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 Pressure: Confirmation

    Oohd (6/20/2012)


    Thanks for this. I did use that book as input to some of my investigation, I haven't yet correlated any of the queries for a specific point in...

    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: ALTER INDEX ..... SORT_IN_TEMPDB

    OLDCHAPPY (6/20/2012)


    wow, great article. seems paul is way off with his 20% estimate.

    Highly unlikely, since he wrote the index rebuild functionality.

    My notes however could very well be in error. I...

    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 Pressure: Confirmation

    I wouldn't consider 50-60% to be overly high. It's good usage of resources (personally I don't like my expensive CPUs sitting mostly idle). The spikes are a bit of 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: Timed DMV's?

    A where clause that filters out the jobs based on their text or other characteristic? Otherwise SQL has no way of knowing that you don't want those in your top...

    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: Stored Proc Recompile

    Correct, though check the replication settings, whether it replicates the changes or the procedure calls (can do the latter, sometimes more optimal). But should still have shown up in profiler.

    No,...

    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: Database Mirroring - witness

    krypto69 (6/19/2012)


    Did you force a failover or did you break the mirror then do a restore database with recovery on the mirror database to bring it live?

    Lets say the power...

    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: Stored Proc Recompile

    It's certainly possible, but I doubt it could cause no procedure calls to show, if it was dropping at random, you should still see some calls and miss others.

    Without 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: Database Mirroring - witness

    krypto69 (6/19/2012)


    If I read this correctly, asyncronous mirroring is only possible with Enterprise Edition. Using Standard Edition you must use syncronous mirroring (with or without a witness).

    Okay..

    I'm stuck with using...

    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: gaps after restarting SQL server 2012

    hi2u (6/19/2012)


    I dont have always on ( i am on standard version)

    It has nothing to do with AlwaysOn. It's just the restart of SQL that causes it.

    Workaround for the moment...

    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 - 17,956 through 17,970 (of 49,552 total)