Forum Replies Created

Viewing 15 posts - 16,681 through 16,695 (of 49,552 total)

  • RE: How do I fix Damaged allocation pages

    If you run repair, you will lose data, hard to tell what (I can't remember how CheckDB handles cases where a page is allocated to two tables). It may result...

    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 in clause vs list of <>

    HooRoo (9/11/2012)


    My colleague is under the impression that A is simply translated into B by the database anyway,

    so insists that B is preferable.

    He's correct that A is translated into...

    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: CONVERT varchar (50) to Decimal (4,4), 2012 Server Express

    Decimal 4, 4 allows for 4 digits, all 4 to the right of the decimal. So it stores values between 0 and 0.9999 (on the positive side), but it cannot...

    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: 2008 indexed view r2 standard edition

    If you are creating an indexed view on Standard edition, any query (from anywhere at all) that you want to use the indexed view must have the NoExpand hint 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: INDEX REBUILD

    A heap is a table that does not have a clustered index defined on 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: 2008 indexed view r2 standard edition

    Don't understand the question.

    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 REBUILD

    nharris (9/10/2012)


    Out of interest, any particular reason why you removed the MASTER database references? That's where the sys.dm_db_index_physical_stats function and sys.databases view reside so specifying their location merely saves SQL...

    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 REBUILD

    mw112009 (9/11/2012)


    I always thought a PRIMARY key is always a clustered index ( Right ? Wrong ? )

    Nope. A PK is enforced by a clustered index if there is 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: Database marked as "In Recovery" after stopped the partition wizard

    The estimation in the error log can be on the low side. Expect at least as long as the operation took before you stopped it and restarted SQL.

    btw, you didn't...

    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: Table Partition

    As I said, you cannot control what data goes onto what file when there are multiple files in a filegroup.

    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: Table Partition

    If there are two files in a filegroup, SQL spreads the data evenly across the two files, you cannot control which file in a filegroup gets what 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: Database marked as "In Recovery" after stopped the partition wizard

    Wait.

    Recovery takes time. When you restarted SQL, the transaction hadn't finished rolling back, so now it has to finish rolling back before the DB can be brought online.

    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: Wait Stats Investigation

    t.brown 89142 (9/11/2012)


    Just noticed your name in the sig line - and that you're technical reviewer on the book!

    Yup

    and apologies - yours isn't a picture of Obi-Wan either 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: Regarding row size

    jitendra.padhiyar (9/11/2012)


    the size of the normal page is 8 KB, what is be the size of LOB pages ?

    8k. All pages without exception are 8k

    Can one row be written(expand)...

    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: Regarding row size

    jitendra.padhiyar (9/11/2012)


    My question is what will happen when the length of the row is more than maximum capacity of sql server?

    If the row is comprised of fixed-length data types, you'll...

    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 - 16,681 through 16,695 (of 49,552 total)