Forum Replies Created

Viewing 15 posts - 39,001 through 39,015 (of 49,552 total)

  • RE: Restore Standby DB after Recovery mode

    Restore a full backup and any tran logs you need. You're not going to get the DB back into standby in a state that will allow logs to be applied...

    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 Timeout

    too_sweeeeeeeet (5/12/2009)


    I have a function that contains the following query which is always timimig out.

    select distinct @Result = sum( column1 )

    from table (nolock)

    where ((column2 = @param1) or (@param1 = 0))

    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: Restore Standby DB after Recovery mode

    To bring a database from STANDBY to ONLINE, run the following

    RESTORE DATABASE <Database Name> WITH RECOVERY

    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: Help with the SQL administration

    ip2host (5/20/2009)


    I didnt correctly express myself.

    I truncated trans logs after full backup each base and trans log.

    Are you running BACKUP LOG ... WITH TRUNCATE_ONLY at all? If so, please read...

    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: A severe error occurred on the current command

    guptaajay1985 (5/20/2009)


    Will I ever get that deleted data..

    No. The data that was on the pages that checkDB deallocated is gone, permanently.

    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: A severe error occurred on the current command

    guptaajay1985 (5/20/2009)


    When I have run DBCC checkdb (postnet,repair_allow_data_loss) it gives in red color...

    Good. It looks like everything's repaired. Run checkDB again (without any repair option, just as I gave 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: Help with the SQL administration

    ip2host (5/20/2009)


    Learned how to truncate trans log instead of deleting them.

    That's something that you need to unlearn, I'm afraid. Transaction logs should not be truncated, they should be backed...

    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 restoring error : "Reference number 5"

    Try running restore with the CONTINUE_AFTER_ERROR option. If that doesn't work then the backup is not restorable.

    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: CPU utilization reaching 100%

    SQL_Monster (5/20/2009)


    Can any suggest and let me know that if CPU is in 100% utilization then the new processes will not be accepted.

    No

    CPU utilization 100% = Utilizing total memory 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: Cannot attach a database in STANDBY mode

    Glenn Dorling (5/19/2009)


    I think it's that undo file that is preventing you from being able to re-attach the database. I don't know of any way of telling the attach...

    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: A severe error occurred on the current command

    Ok, you've got 4 pages that have been trashed somehow. Since you do not have a clean backup, you're going to have to run repair. Note that REPAIR_ALLOW_DATA_LOSS, as it's...

    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: Cannot attach a database in STANDBY mode

    Eric Butler (5/19/2009)


    I can find references in BOL that lead me to believe that it is possible to attach a READ-ONLY database.

    Example, under CREATE DATABASE ...

    Therefore, when 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: sql profiler

    Not as far as I'm aware.

    In fact, it's a reasonably well known 'trick' to add "--password" to the end of a query to stop profiler from showing the code for...

    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: Cannot attach a database in STANDBY mode

    Eric Butler (5/19/2009)


    I have seen this posted numerous times but I have not seen a solution for my problem.

    My ultimate goal is to:

    1 - detach a log-shipped database (databaseA) which...

    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: DATA_PURITY

    Tim Walker (5/19/2009)


    The DATA_PURITY option just performs more limited checks.

    DATA_PURITY

    Causes DBCC CHECKDB to check the database for column values that are not valid or out-of-range. For example, DBCC CHECKDB detects...

    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 - 39,001 through 39,015 (of 49,552 total)