Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Data Corruption Issues
 Complete the restore sequence before taking ...

Author  Topic 

jajjii
Starting Member

8 Posts

Posted - 2010-12-13 : 15:44:12
A couple of months ago, I performed an online page restore on our database. Everything has been working fine until we upgraded our SQL server from 2005 to 2008.

Now when I try to setup/run backup on the database .mdf file, I get an error message. The log file is being backed up just fine.

Failed:(-1073548784) Executing the query "BACKUP DATABASE [ADS] TO DISK = N'\\\\<domainName>..." failed with the following error: "Backup of file 'ADS' is not permitted because it contains pages subject to an online restore sequence. Complete the restore sequence before taking the backup, or restrict the backup to exclude this file.
BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Any pointers are welcome…

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-13 : 15:57:59
It sounds like you are going to have to completely rebuild your database via schema scripts and export/import of data.

What does DBCC CHECKDB(ADS) show?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-13 : 16:02:20
It showed nothing.

DBCC CHECKDB ('ADS') WITH NO_INFOMSGS

result
Command(s) completed successfully.


Basically you are saying that I should create a new database and import all the data into it.

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-13 : 16:04:12
Yes, although I would wait for Gail Shaw's and/or Paul Randal's recommendation on this one. Both of them visit this Data Corruption forum.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-13 : 16:10:12
The error points to 'Complete the restore sequence '.

As far as I know, when doing a page restore, there is no end statement that has to be written.

Is there any script that will check a page restore status?

I'll wait for them as you recommend...
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-12-13 : 16:32:33
From the sound of things, the page restore wasn't done properly. Don't suppose you remember what you did?

--
Gail Shaw
SQL Server MVP
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-14 : 11:16:53
Hi Gail,

I did a page restore as described here [url]http://msdn.microsoft.com/en-us/library/ms175168.aspx[/url]

Once it completed, the database started to work again, and I have had no problems.

Backups were running on both log and the database, and since we moved it to Server 2008, I cannot perform the backup on the database.

I have also moved the database before between different servers, both running SQL 2005 without any problems.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-14 : 12:24:59
You may need to open a case with Microsoft as this sounds like it's going to be tricky to get working again.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-15 : 13:30:15
I just remebered that I blogged about the situation and the steps I took here [url]http://blog.ralfelt.com/post/Database-ID-52c-Page-(14171728)-is-marked-RestorePending2c-which-may-indicate-disk-corruption.aspx[/url]

Please see if you can give me feedback about it.
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-15 : 14:17:38
Sorry the link did not come out right. Copy and paste into your browser instead

http://blog.ralfelt.com/post/Database-ID-52c-Page-(14171728)-is-marked-RestorePending2c-which-may-indicate-disk-corruption.aspx
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-16 : 10:11:36
Any comments?
Go to Top of Page

jajjii
Starting Member

8 Posts

Posted - 2010-12-29 : 13:34:58
I ended up creating a new database, and scripted all the tables, stored procedure, and triggers.

Recreated and set all the permissions on the users.

After this, I could backup the database.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-29 : 13:48:36
Thanks for posting back and glad you got it working. Must've been time consuming!

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -