Home > Archive > MS SQL Server > February 2006 > My MDF Files currupted









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author My MDF Files currupted
khandelwal.deep@gmail.com

2006-02-07, 3:23 am

My company have server with loads of test databases. last saturday its
hard disk crashed all the partitions were lost . i tried to recover
data from that disk and found my database folder. I took backup on
another harddisk and tried to attache my databases but sql server says
it not avalid database file. i tried to repaire those files with
"recovery for sql server" but no use please help.

Sreejith G

2006-02-07, 7:23 am

Tough thing...

If the database file is corrupt, and you cannot restore from a good backup,
reinstalling the software cannot help. also, re-attaching the database files
will not (cannot) solve the corruption.

Try =>
sp_attach_single_fil
e_db
Attaches a database having only one data file to the current server.


if in suspect state => to reset the suspect status:
http://msdn.microsoft.com/library/d...atabse_494j.asp

once you can reaccess the db, try DBCC CHECKDB:
http://msdn.microsoft.com/library/d...s_dbcc_00gy.asp


http://www.experts-exchange.com/Dat...Q_21648997.html

Thanks,
Sree

"khandelwal.deep@gmail.com" wrote:

> My company have server with loads of test databases. last saturday its
> hard disk crashed all the partitions were lost . i tried to recover
> data from that disk and found my database folder. I took backup on
> another harddisk and tried to attache my databases but sql server says
> it not avalid database file. i tried to repaire those files with
> "recovery for sql server" but no use please help.
>
>

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com