473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ 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 2084
Gilles Nambert (gn*****@hotmai l.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****@sommarsk og.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
12413
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
3190
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
4300
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 used or does Outlook have to be used? Thanks for all help! Steve
4
3667
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 Web.HttpContext.Current.Response.AddHeader("content-disposition", "attachment; filename=" & FileName) .Charset = ""
6
10019
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 the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link,...
2
2261
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 in sql server 2005, it can't save in local server and to save into a file location. HOw can save in server
5
1434
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 project, just the vbproj file, not anything to do with the solution, it ends up loading the entire solution! Why is it doing this, and how can I...
2
2414
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 open. But I am not able to write code for opening and saving attached file. So help me out in doing code for opening and saving that file...
2
2478
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 attached file lies on the server in it's original state. fileString = "<a href='upload/test.doc' target=''> View File </a>" The problem is this...
1
3263
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. What I used is as follows : =!! is the subform and is the main form. is the form I would like to open which contains all the fields for the...
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.