Please start any new threads on our new site at 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!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 SQL Server 2005 Database Recovery
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 12/30/2011 :  04:59:00  Show Profile  Reply with Quote
I have suddenly deleted a sql server databse file from Sql server management studio. and recovered it using a data recovery software. but now unable to open this database. the error is "aaa.mdf is not a primary database file error 5171". i need urgent solution plz. help me to solve this issue. it is very urgent


United Kingdom
22859 Posts

Posted - 12/30/2011 :  05:19:00  Show Profile  Reply with Quote
Restore from backup is your first, best, option here.
Go to Top of Page

Flowing Fount of Yak Knowledge

8781 Posts

Posted - 12/30/2011 :  05:20:04  Show Profile  Visit webfred's Homepage  Reply with Quote
The file is corrupt. If there isn't a backup then you have to buy a recovery tool I think.

No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

Flowing Fount of Yak Knowledge

South Africa
4507 Posts

Posted - 12/30/2011 :  06:13:51  Show Profile  Visit GilaMonster's Homepage  Reply with Quote
Restore from backup, that file is damaged.
I don't think I've ever seen a database file recovered with any file recovery tool being usable afterward.

Gail Shaw
SQL Server MVP
Go to Top of Page
  Previous Topic 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.05 seconds. Powered By: Snitz Forums 2000