Forum Replies Created

Viewing 15 posts - 20,731 through 20,745 (of 49,552 total)

  • RE: Problem with syntax (declaration) in stored proc

    You can't put expressions in the calling of a procedure. Declare variables, set the variables to the results of the expressions, use the variables in the EXEC statement.

    Also, you...

    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: DBCC CHECKDB error!

    Sure, that's the best way to see what you're losing. Just bear in mind that if you try and access the damaged documents in the corrupt DB you'll get errors.

    As...

    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: DBCC CHECKDB error!

    Could be more, could be less. There are 17 LOB pages damaged (if I counted correctly), that's about all I can tell you for sure

    With sharepoint you have no choice...

    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: DBCC CHECKDB error!

    If you repair this you will lose probably 17 documents from the sharepoint site, no way to tell which ones and no way to fix this without losing that 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: Strings and Defaults

    Who knows. The cause of this is likely buried somewhere in the past.

    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: DBCC CHECKDB error!

    Dev (1/26/2012)


    May I ask how did you figure out it’s a SharePoint database?

    CHECKDB found 0 allocation errors and 70 consistency errors in database 'WSS_Content_5ce5ed6d-52b4-4eb9-a134-45fb513127fb'.

    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: DBCC CHECKDB error!

    bashiyam.ganesh (1/26/2012)


    The backup also having the same issue, is there any way can I see which page is corrupted?

    And earlier backups? Restore is just about the only safe way 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
  • RE: DBCC CHECKDB error!

    I strongly recommend you restore from a clean backup since this is a Sharepoint DB. Repair could have very nasty consequences.

    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: SPREAD DATABASE ON MULTIPLE MDF FILE

    Yes, it's called proportional fill.

    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: SPREAD DATABASE ON MULTIPLE MDF FILE

    From simply having multiple files in Primary, no (unless you have several thousand).

    From other things, sure. That DB's getting big so things like indexes, well performing SQL, stats, etc...

    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: SPREAD DATABASE ON MULTIPLE MDF FILE

    Ignacio A. Salom Rangel (1/26/2012)


    Just remember that if you set the current file not to autogrowth, when it becomes full you will get all kind of errors

    No it won't. There...

    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: SPREAD DATABASE ON MULTIPLE MDF FILE

    If you set it to not autogrow or set a max size, then correct. With 2 files in the same filegroup, one mostly empty one mostly full, SQL will write...

    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: Is Primary key clustered index different from Unique key clustered index??

    Please note the original thread is almost 2 years old.

    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: Error Restoring Differential after Restoring Full Backup WITH STANDBY error has not been restored to the correct earlier state.

    Welsh Corgi (1/26/2012)


    GilaMonster (1/26/2012)


    The error implies there were. Did you check MSDB backup tables? Did you check the LSNs in the full and diff backup headers?

    I'm sure that is what...

    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: Is Primary key clustered index different from Unique key clustered index??

    lorra (1/26/2012)


    My understanding is that SQL Server will use the primary key index in order to optimize the nonclustered indexes

    Nope. The primary key is totally irrelevant for anything to do...

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