Forum Replies Created

Viewing 15 posts - 20,056 through 20,070 (of 49,552 total)

  • RE: SQL Cache Memory is decreasing

    What do you define as 'cache memory'? How's it measured?

    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: max degree of parallelism and tempdb

    cphite (2/27/2012)


    1. If MAXDOP is set to 1 as it is now, is there really any benefit to having four tempdb files? Will the server even use all four...

    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 maxdop 1 ?

    It probably could theoretically be done in parallel (at least the select from table portion), but that would probably be a bad thing for overall system impact, so force 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: Deadlocks are occuring

    Grant Fritchey's execution plans book (see books link in the side bar) and then Grant Fritchey's Query performance tuning distilled (purchase from your favourite book shop)

    No, Grant does 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: Are the posted questions getting worse?

    jcrawf02 (2/27/2012)


    Has anyone implemented an ENDOFTIME()/BEGINNINGOFTIME() pair of functions before?

    Not exactly, I wrote a bunch of period start and end functions (day, week,month, quarter, year) functions a while 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: Deadlocks are occuring

    Create a new nonclustered index (AllocatedByID, JobStateID) INCLUDE (JobID)

    Should completely prevent the deadlocks.

    This is what's can be called a key-lookup deadlock. The select takes a lock on the nonclustered index...

    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 are occuring

    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)

    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 Date Range

    Well parameter sniffing problems require that the plan is cached and reused, and with option recompile the plan is never cached and hence can't be reused.

    Note that using option recompile...

    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: Erratic SP Performance

    Track the per-process waits (sys.dm_os_waiting_tasks), the cumulative is fairly useless as a single snapshot, especially with all the ignorable waits included.

    See if you can track, when that query runs slower...

    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: Massive jump in stored procedure execution time

    Can you explain the problem a little more?

    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: Reindexing issue on SQL Server 2005 Standard Edition

    WayneS (2/27/2012)


    Simon-413722 (2/26/2012)


    WayneS (2/23/2012)


    Another question related to this. Tech Support people are saying that we didn't start having this problem until the server was upgraded. It went from a 4-core...

    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: Max Memory - SQL Server 2008 R2 Enterprise Edition (64-bit)

    False.

    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: Update Statistics - Views

    Is the article you read taking about views (which are just saved select statements and have neither data, indexes nor statistics) or indexed views?

    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 Date Range

    OK, but for the purposes of 'parameter sniffing', constants and parameters are much the same. SQL can tell their value at compile time meaning it can generate a plan based...

    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 help on transfer/copy all db objects....from 1 server to another In real time experience way

    Backup-restore for the contents of the database, script the logins (with their SIDs) or use SSIS's transfer logins, script the jobs or use SSIS transfer jobs.

    Backup-restore will transfer the same...

    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 - 20,056 through 20,070 (of 49,552 total)