Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

United Kingdom
1 Posts

Posted - 11/05/2012 :  08:53:23  Show Profile  Reply with Quote
How do I edit an MDF file?Windows 7.
I have downloaded a 2MB .mdf file, much too big for my needs and I want to edit it.
Google points me to SQL Server Management Studio among other programs.
My W7 has SQL Server and SQL Server Compact Edition.
How do I use one of these to load and then edit my .mdf file?

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/05/2012 :  11:47:23  Show Profile  Reply with Quote
Normally you don't "edit" MDF files in the conventional sense of editing a text file or other document. You use it by attaching the MDF files to a database server. Once you do that successfully, you can inspect the database in SQL Server Management Studio, delete data from tables etc. Then, when you want to move it to a different location or deploy it, you would back up the database from SSMS and restore it at the target server.

I am not familiar with compact edition. You can download and use the Express Edition of SQL 2012 or an earlier version from Microsoft free of charge. Once you install it, you will have access to a local server and mangement studio.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000