Connecting Tech Pros Worldwide Help | Site Map

Pb to open an attached mdf file

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 14th, 2008, 09:05 AM
Gilles Nambert
Guest
 
Posts: n/a
Default Pb to open an attached mdf file

Hi,

I'm not familiar with backup procedures of SQL Server (i'm used to make
simple file copies when no body works) and i have now the following
message :

Invalid header for the Base.mdf file. The property FILE SIZE is
incorrect.

Of course, i have some data to recover since the last good file. So, I
would appreciate if anybody knows how to repair the file ?

Thanks and best regards
Gilles



*** Sent via Developersdex http://www.developersdex.com ***

  #2  
Old July 14th, 2008, 11:45 AM
Erland Sommarskog
Guest
 
Posts: n/a
Default Re: Pb to open an attached mdf file

Gilles Nambert (gntools@hotmail.fr) writes:
Quote:
I'm not familiar with backup procedures of SQL Server (i'm used to make
simple file copies when no body works) and i have now the following
message :
>
Invalid header for the Base.mdf file. The property FILE SIZE is
incorrect.
>
Of course, i have some data to recover since the last good file. So, I
would appreciate if anybody knows how to repair the file ?
Seems like you are in big trouble. I think the best advice I can give
you is to open a support case with Microsoft, although it will cost you
an arm and a leg. There is considerable risk that you database is lost.

The proper way to back up an SQL Server database is to use the BACKUP
command in SQL Server. You cannot simply make a file backup of the MDF
and LDF file while the server is running, as the backup may not be
transactionally consistent. If you have shut down the server, I think
it's safe, but it's nothing I would recommend for a production database.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.