Unix Technical Forum

Pb to open an attached mdf file

This is a discussion on Pb to open an attached mdf file within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, I'm not familiar with backup procedures of SQL Server (i'm used to make simple file copies when no ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2008, 06:46 PM
Gilles Nambert
 
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 ***
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-14-2008, 06:46 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Pb to open an attached mdf file

Gilles Nambert (gntools@hotmail.fr) writes:
> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com