473,484 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 ***
Jul 14 '08 #1
1 2077
Gilles Nambert (gn*****@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, es****@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
Jul 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
12368
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
13
3175
by: puzzlecracker | last post by:
I would like to find out why exactly I wasn't able to open or execute the file.... how is it done in c++? ifsteam in("somefile"); if(!in) //why?
2
4291
by: Steve | last post by:
How do you programatically save files that are attached to an email to a specified folder? It could be one file or multiple files attached to the email. Can it be done if Outlook Express is being...
4
3652
by: Dorte | last post by:
Hi, I am using the code below to stream a CSV file with the response object. Dim FileName As String = "Test.csv" With Web.HttpContext.Current.Response ...
6
10016
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
2
2258
by: ken | last post by:
Dear all If I have asp.net 2.0 web project, when i move the folder of web project into other place, i can't open the web project, how to solve this problem? Moverover, when i create a stor pro...
5
1425
by: cmay | last post by:
I have a big solution filled with a bunch of projects. I add a project to the solution (not adding any references mind you). Now, if I close down everything and try to just open that single...
2
2406
by: prateekbindal | last post by:
Hello, Does any one know how to open the file attached with the message using asp.net? I have sent one message along with attachment. So when user clicks the attached file, the file gets...
2
2468
by: ismailc | last post by:
Good day, I desperately need to get the following working. I have an application that uses vbscripting as it's code developing, The two problems I have is: 1. Creating a link to open the...
1
3250
by: menkenk | last post by:
Good Afternoon, I currently have an issue in trying to get a macro working for clicking a record in a subform datasheet to open a form with the complete record details of that specific record....
0
7080
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7140
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6811
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5403
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
588
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.