Forum Replies Created

Viewing 15 posts - 16,711 through 16,725 (of 49,552 total)

  • RE: How do I fix Damaged allocation pages

    You have main two choices

    - Restore the backup and lose all data since the backup was taken

    - run repair and lose data. How much I can't tell (would really like...

    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: How do I fix Damaged allocation pages

    Not from before the errors, from before the corruption. When was your last good checkDB?

    Assuming that backup is clean, do you have an unbroken chain of log backups since then?

    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: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    TruncateOnly is not a valid shrink option when shrinking the log. It's ignored. It's valid for data files only.

    The rest sounds fine, just note that you won't necessarily be able...

    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 it is not possible to store more than 8000 bytes of data in nvarchar(max) variable?

    What are these:

    @listStr

    @Years

    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: How do I fix Damaged allocation pages

    Probably not, because accessing corrupt portions of the table will result in errors. You can try, but that's usually a lot of hard work to narrow down the portions 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: Execution Plans & Table Locks

    Brandie Tarvin (9/10/2012)


    I know the optimiser won't tell me what locking might come up. What I was trying to get at (in my poorly worded way) was to see if...

    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: Connect to a SQL 2000 db file

    No. SQL Server is not a file-based database like MS Access. To use a DB, the DB must be attached to a running SQL instance.

    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 it is not possible to store more than 8000 bytes of data in nvarchar(max) variable?

    Post your code. Somewhere you're converting to VARCHAR(8000) or NVARCHAR(4000). Nvarchar(max) can store up to 2GB of 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: Connect to a SQL 2000 db file

    You can't attach a SQL 2000 DB to SQL 2012, you need to first upgrade the DB to SQL 2005 or SQL 2008 (by attaching it to one of those...

    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: after fragmentation

    In SLQ 2005 and above, you just rebuild the indexes that need rebuilding, order does not matter.

    On SQL 2000, if the clustered index was not unique, rebuilding it rebuilt all...

    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: after fragmentation

    Lynn Pettis (9/10/2012)


    One more thing, if you need to rebuild a clustered index and a nonclustered index on the same table be sure to do the clustered index first. ...

    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: How do I fix Damaged allocation pages

    jdbrown239 (9/10/2012)


    Wouldn't last nights backup have the same corruption? If so I would have to use one from a few days ago.

    Depends when the corruption happened. When was your...

    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: Execution Plans & Table Locks

    Oh, and please note that the blog post you referenced is 90% copy-paste from these two pages:

    http://msdn.microsoft.com/en-us/library/ms184286%28v=sql.105%29.aspx

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

    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: Execution Plans & Table Locks

    Brandie Tarvin (9/10/2012)


    Is there a way to use an estimated execution plan to determine what kind of locks will be held on a table?

    No. The optimiser knows nothing about 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: Memory Leak SQL 2008 R2 64 bit?

    From what you describe, no issues, normal expected behaviour.

    Haven't we had several memory-related discussions already on this?

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