Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2004
    Posts
    52

    Unanswered: HELP!! How to estimate the time it take...

    to do a database repair on SQL server v7.

    This is what I did

    dbcc checkdb ('mydatabase', REPAIR_REBUILD) with estimateonly

    It gave me error ....

    estimateonly is not an option.

    What did I do wrong? Thank you for your help!!!!!!!!!!

  2. #2
    Join Date
    Jan 2004
    Location
    In a large office with bad lighting
    Posts
    1,040
    It depends!

  3. #3
    Join Date
    Feb 2004
    Posts
    52
    What I want to do is to repair the database, but I want to
    know ahead of time how long it will take.

    Is there another way to do this?

  4. #4
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    The ESTIMATEONLY clause was introduced in SQL-2000. If you are running SQL 7.0, that isn't a choice for you.

    -PatP

  5. #5
    Join Date
    Feb 2004
    Posts
    52
    Thank you. Is there any way to estimate how long it
    will take?

  6. #6
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    There are ways, but the process usually runs very quickly and has zero impact on active users. I wouldn't worry about the time it will take because it isn't really significant... At least in my experience no one will realize you are running it, much less care.

    -PatP

  7. #7
    Join Date
    Feb 2004
    Posts
    52
    It thought I have to change it to single-user mode in order to run dbcc checkdb

    If I change it to single-user mode, only one user can use it.

  8. #8
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    You CAN run it while database is in use, you'll just get a warning about "spureous" errors (check spelling, I am not sure).
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •