Forum Replies Created

Viewing 15 posts - 19,666 through 19,680 (of 49,552 total)

  • RE: Explain Plain

    Can you post the entire execution plan please? Save it, zip and attach to your post.

    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: Filtering with @variables

    I personally wouldn't recommend either. The @variable IS NULL OR Column = @Variable produces poor execution plans (unless option recompile is specified and the SQL version is > 2008 SP2)...

    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: about backup

    Stop thinking about backups.

    What are your recovery SLAs for this database? If the DB should disappear one day, how long would you have to recover it and how much data...

    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?

    Or Harvard (http://www.youtube.com/user/Harvard), Yale (http://www.youtube.com/user/YaleCourses, http://www.youtube.com/user/YaleUniversity), University of California, Berkeley (http://www.youtube.com/user/UCBerkeley), Carnegie Mellon (http://www.youtube.com/user/CarnegieMellonU), etc, etc (http://www.youtube.com/education)

    Or, for those with iOS devices, http://itunes.apple.com/us/app/itunes-u/id490217893?ls=1&mt=8

    I have a number of physics courses, 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: backup/copy standby/read-only database

    You can't back up a database that is in StandBy/Readonly. why is it in that state?

    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: Loading an index in memory

    Hard to say anything for a hypothetical situation.

    Run DROPCLEANBUFFERS then run your query with statistics IO on. The number of physical reads done on that table is the number of...

    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: Loading an index in memory

    Depends whether the query is resolved with an index scan or lots of index seeks. Check the execution plan.

    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 Fragmentation

    derekr 43208 (3/20/2012)


    I don't get this because I understand that Fragmentation on an Index has no affect on SQL finding a value in an Index - Right?

    Correct, finding a row...

    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 Fragmentation

    If it is part of a large range scan from disk, maybe.

    Emphasis Large, Scan and Disk.

    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 Fragmentation

    derekr 43208 (3/20/2012)


    GilaMonster (3/20/2012)


    derekr 43208 (3/20/2012)


    So, no extra disk reads are required when SQL tries to find a value on a page that has moved because of recent plage splits?

    Pages...

    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: Query Stalls - Upgrade from 2000 to 2005

    Ken at work (3/20/2012)


    I was just wondering if I could run it after inserting a large batch of new records. This actually happens weekly.

    Oh, if you're only adding data...

    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 Fragmentation

    derekr 43208 (3/20/2012)


    With this in mind - Is it safe to say that when a Clustered Index is fragmented, the affects are much worse than when a Non-Clustered index is...

    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 Fragmentation

    derekr 43208 (3/20/2012)


    So, no extra disk reads are required when SQL tries to find a value on a page that has moved because of recent plage splits?

    Pages don't move 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: Query Stalls - Upgrade from 2000 to 2005

    No, that would probably not be a particularly good thing to do. I'd recommend create a job that updates stats on that table with fullscan and schedule it every night.

    See...

    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: I need to get the rank 0f the students without using the rank functions

    Why can't you use the windowing functions? Homework limitation?

    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 - 19,666 through 19,680 (of 49,552 total)