full and differential backup

  • hi

    when i am taking full backup and i am restoring full back up

    i am getting error like "the database is not accessible"

    please help me

    regards,

    gamit

  • Gamit

    What is the exact error message and what command are you using to restore the database? If you are using the GUI, there is a script button you can use to generate the command.

    John

  • Are you trying to restore on a top of database which already exists?

    If yes then use:-

    Alter database <DBNAme> set offline with rollback immediate

    go

    alter database <DBNAme>set online

    go

    restore command

  • sounds like there are connections to the database preventing you restoring to it.

    ---------------------------------------------------------------------

  • Try this:

    Alter database <DBNAme> set single_user with rollback immediate

    go

    <your restore statement>

    go

    alter database <DBNAme> set multi_user

    go

  • Connections to a database will not give you the 'database inaccessible' error message. If you're getting that error when backing up, then the database you're trying to back up is not accessible. Don't try things like taking it offline/online without looking at the root problem first, they could make matters worse.

    What exactly are you trying to do, what are the exact error messages and what messages are in the SQL error log?

    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
  • gamit124 (3/28/2013)


    hi

    when i am taking full backup and i am restoring full back up

    i am getting error like "the database is not accessible"

    please help me

    regards,

    gamit

    Are you getting this error during the backup or the restore??

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • The problem is with the backup

  • Then...

    GilaMonster (4/18/2013)


    If you're getting that error when backing up, then the database you're trying to back up is not accessible. Don't try things like taking it offline/online without looking at the root problem first, they could make matters worse.

    What exactly are you trying to do, what are the exact error messages and what messages are in the SQL error log?

    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 9 posts - 1 through 8 (of 8 total)

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