Click here to Skip to main content
15,904,655 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Unexpectedly I changed mdf file open file as a visual studio. So many time I tried to change previous open file type as a sql server query type but I can’t did this. Please anyone can help me this problem.

Tried step 1: via control panel – default program
Tried step 2: via mdf file property – change program

Those steps are not changed to previous file type
Posted
Updated 19-Feb-15 7:50am
v3

Normally a file with MDF extension is used by SQL server for the first (primary) database file.

This file contains data from the database in a binary format and it is not intended to be opened by anything else than the SQL Server engine.

Never store any SQL queries or anything else in MDF files. I advice you to leave that extension alone and let only the SQL Server to use it.
 
Share this answer
 
Thanks but when I tried to attach mdf file to sql server it will not performed
 
Share this answer
 
Comments
Afzaal Ahmad Zeeshan 19-Feb-15 14:41pm    
Add a comment to their answer to notify them about the questions or comments. Thanks.

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