如何更改MDF文件的默认属性 [英] How to change MDF file default properties
本文介绍了如何更改MDF文件的默认属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
出乎意料的是,我将mdf文件打开文件更改为visual studio。很多时候我试图将以前的打开文件类型更改为sql server查询类型,但我无法做到这一点。请任何人都可以帮我解决这个问题。
试过第1步:通过控制面板 - 默认程序
尝试第2步:通过mdf文件属性 - 更改程序
这些步骤不会更改为以前的文件类型
解决方案
通常是带有MDF的文件SQL服务器将扩展名用于第一个(主)数据库文件。
此文件包含二进制格式的数据库中的数据,并且不打算打开除了SQL Server引擎以外的任何其他内容。
永远不要在MDF文件中存储任何SQL查询或其他任何内容。我建议你单独保留该扩展,只让SQL Server使用它。
谢谢,但当我尝试将mdf文件附加到sql server时,它将无法执行
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
解决方案
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.
Thanks but when I tried to attach mdf file to sql server it will not performed
这篇关于如何更改MDF文件的默认属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文