.mdf 文件打开问题
我使用 SQL Server Management Express 创建了 myFile.mdf,并使用 vb.net 向其中保存了一些数据。当我尝试在 SQL Server Management Express 中打开它时,它没有打开它,并表示没有可用的编辑器。 如何打开这个文件?
谢谢 富尔坎
I created myFile.mdf using SQL Server Management Express and saved some data to it using vb.net. When I tried to open it in SQL Server Management Express, It did not open it saying there is no editor available for it.
How to open this file?
Thanks
Furqan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你打不开它。它是一个数据库文件,必须作为数据库附加到 SQL Server 中,例如通过使用 SQL Server Management Studio。然后您可以浏览表格和数据。
而且,您不能只向其中写入任何数据,例如文本或二进制文件。您必须使用数据库连接提供程序从 .NET 写入数据。
You can't open it. It's a database file and must be attached as database in the SQL Server, e.g. by using SQL Server Management Studio. Then you can browse the tables and the data.
And, you can't just write any data to it, like to a text or binary file. You must use a database connection provider to write your data from .NET.
如果您安装了 SQL Management Studio,我希望您也安装了 SQL Server?
当您第一次打开 SQL Management Studio 时,您应该会看到一个连接框。 “服务器名称”右侧应该有一个小箭头,用于打开下拉框并选择您要管理的 SQL Server。它应该找到任何本地服务器本身,并且能够通过 Windows 身份验证进行连接(本地没有密码)。
一旦连接到 SQL Server,您将在左侧窗口中看到您的表和内容。
SQL MS 无法打开 mdf 文件。 mdf 文件是由 SQL Server 本身创建的,如果您确实在 PC 上运行它,则可以在磁盘上的 C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL 区域中找到 mdf。
没有人可以直接打开该文件,但他们可以将其复制到自己的 SQL Server 文件夹中并使用我相信的数据(如果他们设法获得副本)。
If you have SQL Management Studio installed, I expect you also have SQL Server installed?
When you first open SQL Management Studio you should be presented with a connect box. "Server Name" should have a little arrow on the right to open a dropdown box and select the SQL Server you want to manage. It should find any local server itself and be able to connect with Windows Authentication (no password for you locally)
Once you connect to the SQL Server you will see your tables and stuff in the left window.
SQL MS can't open an mdf file. The mdf file is created by the SQL Server itself and if you do have it running on your PC, you can expect to find the mdf in the C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL area on your disk.
Nobody can open that file directly but they can copy it into their own SQL Server folder and use the data I do believe, should they manage to get a copy.
SQL Server Express 是数据库的一个实例。
您无法“打开”它,只能“连接”它。
请提供有关您如何创建数据库以及如何尝试打开数据库的确切步骤。
SQL Server Express is an instance of a database.
You can't "open" it you can only "connect" to it.
Please provide steps on exact how you created the database and how you are attempting to open it.