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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 Repair database without being attached (SQL 2005)
 Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

JamesBradle
Starting Member

1 Posts

Posted - 03/28/2015 :  16:18:21  Show Profile  Reply with Quote
Hello experts,

Is it possible to try repair a database without being attached, giving the path to the files?
I'm trying to attach a database that i recover from a disk, and i'm not able to attach, gives me an error, saying i should do a db check.

Thx in advanced

Kristen
Test

United Kingdom
22859 Posts

Posted - 03/29/2015 :  11:02:49  Show Profile  Reply with Quote
Can't think of a way you can do that.

Instead of attaching it can you take a full backup and restore that? The Restore will hap[illy restore a corrupted database - i.e. you will get an exact copy of the original. You can then use the Consistency Checking tools to see if it is bust, repair it, etc. (and then backup/restore it over the original, or perform the same steps on the original)
Go to Top of Page

GregoryGood
Starting Member

2 Posts

Posted - 03/30/2015 :  07:29:02  Show Profile  Reply with Quote
quote:
Originally posted by JamesBradle

Hello experts,

Is it possible to try repair a database without being attached, giving the path to the files?
I'm trying to attach a database that i recover from a disk, and i'm not able to attach, gives me an error, saying i should do a db check.

Thx in advanced



You can try SQL Server Repair Kit. A convenient, reliable and ultimately efficient MS SQL database repair tool for system administrators, developers and database experts. Best in class performance and outstanding usability for users with and without experience.

For more: http://www.mssqlserver.repair/
Go to Top of Page

Lincolnburrows
Yak Posting Veteran

52 Posts

Posted - 07/22/2015 :  01:49:57  Show Profile  Reply with Quote
Must read this article get number of hits: https://msdn.microsoft.com/en-us/library/ms190209.aspx
Go to Top of Page
   Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000