SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stop Recovery Progress. Urgent help needed


Stop Recovery Progress. Urgent help needed

Author
Message
balbirsinghsodhi
balbirsinghsodhi
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2232 Visits: 1435
One of my database is in recovery process. I need to stop it. I don't care if I lose data in log file. I want to delete log file but cannot.
Is there a way to stop recovery process.



Steve Jones
Steve Jones
SSC Guru
SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)SSC Guru (145K reputation)

Group: Administrators
Points: 145703 Visits: 19425
Pull the plug! Not sure that you can do anything else.

There is a switch to start SQL Server without going through recovery.

Why do you want to stop it? This is recovery, on the restart of the instance and not restore, correct?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
balbirsinghsodhi
balbirsinghsodhi
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2232 Visits: 1435
Is it recovering uncommitted transaction from the transaction log file. If that is the case then I can open database with out transaction log file and let system will create a new log file.
My log file is growing and no space on the drive.

I don't know what recovery process is doing and how long it takes.



Balmukund Lakhani-269523
Balmukund Lakhani-269523
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1816 Visits: 367
I think I am late in party Smile
I would never recommend to stop recovery process. No one can stop you doing suicide but thats crime Cool

Jokes apart, You could stop SQL Server in such cases, rename the transaciton log. This will bring database into suspect mode. Then you can run some command to rebuild the log after brining database in to Emergency mode. SQL 2005 has ALTER DATABASE SET EMERGENCY command.


Let me know if you want more details - bmlakhani@yahoo.com
Chandrachurh Ghosh
Chandrachurh Ghosh
SSC Eights!
SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)SSC Eights! (813 reputation)

Group: General Forum Members
Points: 813 Visits: 331
As of now there is no proper way to quit from an ongoing restore....if anyway you interrupt the restore process, the state of the database will be set to 1 and the database property 'IsShutDown' for the database is set to null....and there is no way of updating the system tables with adhoc queries......so its upto the MS SQL Server Development team to provide the feature of restore rollback in the next version......

Chandrachurh Ghosh
DBA – MS SQL Server
Ericsson India Global Services Limited
Quality is not an act, it is a habit.
rajankjohn
rajankjohn
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2011 Visits: 575
you can use trace 3607; it should skip the recovery process. Hope you have the backups in placeSmile
Ignacio A. Salom Rangel
Ignacio A. Salom Rangel
SSCertifiable
SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)SSCertifiable (6.5K reputation)

Group: General Forum Members
Points: 6510 Visits: 1439
Did you solve your problem?




My blog

Bob Fazio
Bob Fazio
Hall of Fame
Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)Hall of Fame (3K reputation)

Group: General Forum Members
Points: 3006 Visits: 683
I suspect that a recovery was started and left so that more logs could be applied.

RESTORE DATABASE [analysis] WITH NORECOVERY



I would suggest trying to recover to read only mode first.

RESTORE DATABASE [analysis] WITH STANDBY = 'D:\Program Files\Microsoft SQL Server\SQL2005\MSSQL.1\MSSQL\Backup\ROLLBACK_UNDO_analysis.BAK'



Or just try and fully recovery

RESTORE DATABASE [analysis] WITH RECOVERY


Kurt W. Zimmerman
Kurt W. Zimmerman
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2608 Visits: 1400
"Then you can run some command to rebuild the log ...." and that is? I'm having the same issue and I was able to rename the log but was not sure how to rebuild the log.

Your help is greatly appreciated

Kurt
.

Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY

http://www.linkedin.com/in/kurtwzimmerman
balbirsinghsodhi
balbirsinghsodhi
SSCrazy
SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)SSCrazy (2.2K reputation)

Group: General Forum Members
Points: 2232 Visits: 1435
Thanks for all your help.
The recovery process ran for some time and then recovered the database. I did not do anything but to wait.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search