March 28, 2013 at 1:48 am
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
March 28, 2013 at 2:27 am
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
April 17, 2013 at 9:55 am
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
April 17, 2013 at 10:02 am
sounds like there are connections to the database preventing you restoring to it.
---------------------------------------------------------------------
April 17, 2013 at 9:16 pm
Try this:
Alter database <DBNAme> set single_user with rollback immediate
go
<your restore statement>
go
alter database <DBNAme> set multi_user
go
April 18, 2013 at 12:02 am
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
April 18, 2013 at 12:15 am
gamit124 (3/28/2013)
hiwhen 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" 😉
April 18, 2013 at 11:06 am
The problem is with the backup
April 18, 2013 at 11:12 am
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
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply