Forum Replies Created

Viewing 15 posts - 15,196 through 15,210 (of 49,552 total)

  • RE: optimize for ad hoc workload

    The optimise for ad-hoc workloads option does not exist in SQL 2005. It was added in SQL 2008.

    p.s. you may want to change 'allow updates' back to 0 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: weird memory usage on sql server

    Don't use Task Manager to check SQL's memory. It can be completely wrong.

    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 Stuck in "Restoring .." Mode?

    If the restore completed but was run WITH NORECOVERY then run RESTORE DATABASE <db name> WITH RECOVERY

    If you aborted the restore part way through, drop the DB and run 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: db in restoring

    I would advise that you don't. There's nothing that suggests in any way that there's any corruption or damage to the DB, and if there was, repair software would 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: ''=0 ?!?!

    SQL cannot compare two different data types, nor can it multiply by a string. Hence, any time you ask it to do that, it will do an implicit conversion. As...

    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: Where's the autogrowth?

    Autogrow is not logged to the error log unless it times out, takes excessively long or fails. Try the default trace.

    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: DeadLocks and exchangeEvent

    Craigmeister (12/17/2012)


    Would you say this is an issue of these processes not being optimized so they are not completing fast enough and thus trip on each other? Or is it...

    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: DeadLocks and exchangeEvent

    Craigmeister (12/17/2012)


    The issue is from the trigger causing lock escalation,

    No, the trigger is not causing lock escalation. Lock escalation is to table always, we're dealing with page and row locks...

    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: DeadLocks and exchangeEvent

    All right, so if we discard all the parallelism mess (which is mostly irrelevant noise), we have this:

    spid=52, running a statement within a trigger

    UPDATE BART_V3_TBL_ORDERS SET BART_V3_TBL_ORDERS.DateLastChanged = GETDATE()

    FROM BART_V3_TBL_ORDERS

    INNER...

    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: sqlservr.exe process only growing to 125Mb on very busy system - why ?

    Performance Monitor. Total Server memory counter (it's a SQL counter)

    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: sqlservr.exe process only growing to 125Mb on very busy system - why ?

    Don't use Task Manager to check SQL's memory usage. It doesn't report correctly.

    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 way to get execution plans?

    Profiler.

    And index hints should be your last resort, not your first idea.

    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: DeadLocks and exchangeEvent

    Can you post the entire deadlock graph please? By the looks of it, you've simplified out info that I need to see what's happening.

    Can you also post the table definition...

    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: db in restoring

    Restoring or recovering?

    Restoring means that the DB is in the process of being restored from a backup. Check the error log, see what happened.

    Try RESTORE DATABASE <database name> WITH RECOVERY,...

    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: Some doubts on T-SQL basic fundamentals

    Switch traceflag 1222 on. That will result in a deadlock graph been written to the error log every time a deadlock occurs. Post the result of that graph here.

    DBCC TRACEON(1222,-1)

    How...

    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 - 15,196 through 15,210 (of 49,552 total)