if database crashes how to recover in sql server 2008

  • Hi..

    i am using sql server 2008..

    if suddenly database crashes then how to recover it?

    what about data?

  • This is a very generic question. You may refer some books for the same.

    M&M

  • A simple answer would be "Restore the Backup".

    --------------------------------------------------------------------------------------------------
    I am just an another naive wannabe DBA trying to learn SQL Server

  • i have an old backup..

    i have modified database after that backup.

    what about that data(modifications)?

    i want that data(modifications) also..

  • goldspoon (3/1/2011)


    i have an old backup..

    i have modified database after that backup.

    what about that data(modifications)?

    i want that data(modifications) also..

    Take tail log backup. Then restore the old backup and the tail log backup. The stored database will have your modifications.

  • Depends what kind of crash and how bad. If the server is running and the database is still connected and the log is intact, you can do a tail-log backup. Otherwise you will lose 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
  • thanks for reply..

    my doubt is

    what if the server is not running and database is not connecting?

    then how to take tail log backup..

  • If you can't get SQL to start, then see 'Otherwise you will lose that data'

    You don't need to be able to connect to the DB to do a tail log backup. SQL running and the database still listed is usually enough. Depends how bad the damage is.

    This is why the interval between log backups is so important.

    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
  • thank u ..

    Actually i'm taking backup for every 4 hrs.. with in 4 hrs if database crashes then i have to lose data if SQL server should not run(as u mentioned)

    it is must and should the SQL server should run otherwise the data will be lost .. other than sql server running, is there any option to recover the data.. ?

    and other than tail log backup is there any option to recover data?

  • Full backup every 4 hours or transaction log?

    Will your business tolerate up to 4 hours of data loss? If not, you really need to increase the frequency of the log backups.

    As for other methods of recovery, depends on how bad the disaster was and what the situation is. If the data file is lost, no.

    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
  • full backup every 4 hrs..

  • And your log backups?

    Tail log backup requires full recovery, full recovery requires regular log backups. Please read through this: http://www.sqlservercentral.com/articles/64582/

    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
  • Thanks for the reply..

    In how many ways the database will be crashed?

    in which cases it can be recovered and in which cases it can't?

  • There are so many ways things could go wrong...

    If you have backups, full and log, you can recover at least to the last log backup. If the DB is online and the log file undamaged you can restore to point of failure.

    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
  • This was removed by the editor as SPAM

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic. Login to reply