Forum Replies Created

Viewing 15 posts - 14,476 through 14,490 (of 49,552 total)

  • RE: logical consistency-based I/O error

    It repairs the database, nothing more. Go read up on it in Books Online (clearly documented)

    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: NOT makes query never complete?

    Join hints are a bad idea in most cases. Rather see why SQL's picking a loop join (probably low row estimations on one or both tables) and fix the cause.

    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: ALLOW_PAGE_LOCKS=OFF

    jfogel (2/1/2013)


    One last question. I read that when executing the enable RCS command that there can't be any other connections or transactions open in that database.

    Correct

    Then the article goes on...

    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: get SQL server memory usage

    sqlfriends (2/1/2013)


    If target server memory is much less than total server memory, is it under memory pressure?

    Not SQL, but likely the OS. Target lower than total means SQL's been told...

    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: ALLOW_PAGE_LOCKS=OFF

    Just increased TempDB usage. The snapshot isolation levels use row versioning instead of locks, and those row versions go into TempDB. Long-running transactions will result in the versions not getting...

    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: NOT makes query never complete?

    Without knowing the underlying indexes, not really. It's not the syntax, the optimiser's smart enough to convert the forms, it's going to be the indexes that make a difference.

    Without knowing...

    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: NOT makes query never complete?

    Because the optimiser works on the entire query in one go, not the subquery first and the outer query second, the two very likely simplify to the same form.

    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: NOT makes query never complete?

    No way to tell without seeing the indexes and exec plan. Probably the indexes don't support the additional predicates, possibly combined with row estimation errors (NOT is a little hard...

    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: ALLOW_PAGE_LOCKS=OFF

    If you're already seeing lock escalation, disabling page locks will likely make that escalation worse.

    With page locks allowed, SQL can take locks at row, page or table. If it find...

    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: NOT makes query never complete?

    Is there a question here?

    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: Performance problem with a proc for a specific date.

    Either the stats got sufficiently out of date (see referenced blog post) or the data volume increase and passed a tipping point where the plan changed dramatically

    There's definitely some room...

    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: Performance problem with a proc for a specific date.

    Tried breaking it up? Insert the tvf into a temp table, join the temp table.

    Can't tell much about the row count, the plans are estimated, but SQL thinks it's dealing...

    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: Performance problem with a proc for a specific date.

    http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-column/

    btw, you do know what nolock does?

    See - http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx

    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: Advices for best practices for configuring MS SQL Server system databases?

    Master, model, msdb and resource, leave them alone, unless you have a really good reason to change them (and even then, just model and maybe msdb).

    TempDB:

    http://www.sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-%281230%29-tempdb-should-always-have-one-data-file-per-processor-core.aspx

    http://support.microsoft.com/kb/917047

    http://technet.microsoft.com/library/Cc966545

    http://www.sqlskills.com/blogs/paul/category/tempdb/

    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: Issue in deadlock in our production server

    asmita.patel (2/1/2013)


    Use "With (nolock)" hint with table name in query,

    for example

    select a.*

    from <<tbl_aa>> a with (nolock)

    Join <<tbl_bb>> b with (nolock) on a.aa_id = b.bb_id

    --Note: You 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

Viewing 15 posts - 14,476 through 14,490 (of 49,552 total)