Click here to Skip to main content
15,881,742 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to open .mdf file in sql server? or how can convert .mdf file to .bak ?
Posted

In Microsoft SQL Server Management Studio after connecting to your server right click on the Database folder and select attach and choose your .mdf file and attach it

And you don't convert to .bak you backup your database and this creates the .bak file
Here is how to backup your database right click on your database in the management studio then select tasks then Back Up and choose your backup options then click Ok and here you are you have now .bak file in the given directory

Hope this helped
 
Share this answer
 
 
Share this answer
 
You can open MDF file in SQL Server 2005 through SQL Recovery Software which is one of the suitable and best option for you. This utility contains simple and easy methods to open and repair corrupt MDF file. Try it by following its steps which is described in it. Go through this link: http://gallery.technet.microsoft.com/SQL-Data-Recovery-Process-24b861a7
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900