我希望能够打开 .mdf 文件.我正在使用 WebMatrix,我可以在那里查看查询.我也可以阅读架构.但是如何在不使用 WebMatrix 的情况下读取文件.它的 SQL Server 文件不是 Compact 版本.
I was hoping to be able to open .mdf file. I am using WebMatrix, I can view the queries there. I can read the schema too. But how can I read the file without using WebMatrix. Its SQL Server file not the Comptact edition.
我搜索了网络帮助(通过窗口).但一切都是徒劳的.我更喜欢任何链接或任何方法来阅读基本查询.
I have searched for web help (Through windows). But all in vain. I will prefer any link or any method to read the basic queries.
.sdf 实际上是一个 Compact Database 文件(除非您更改了会出现问题的扩展名).SQL Server 将是 .mdf.
.sdf is, in fact, a Compact Database file (unless you've changed the extension which would be problematic). SQL Server would be .mdf.
您可以将数据库附加到您的本地 SQLEXPRESS 实例并查看它.可以在 msdn 上找到附加它的示例:如何:将数据库文件附加到 SQL Server Express.基本上你是在打电话:
You can attach the database to your local SQLEXPRESS instance and view it. An example of attaching it can be found on msdn: How to: attach a Database File to SQL Server Express. Essentially you're calling:
USE [master]
GO
CREATE DATABASE [database_name] ON
( FILENAME = N'C:\Path\To\<database name>.mdf' ),
( FILENAME = N'C:\Path\To\<database name>.ldf' )
FOR ATTACH ;
GO
.sdf)我发现打开它们的最佳工具是 CompactView.
这篇关于使用什么打开 .mdf(SQL 数据库)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
我应该使用什么 SQL Server 数据类型来存储字节 What SQL Server Datatype Should I Use To Store A Byte[](我应该使用什么 SQL Server 数据类型来存储字节 [])
解释 SQL Server 中 sys.objects 中的类型代码Interpreting type codes in sys.objects in SQL Server(解释 SQL Server 中 sys.objects 中的类型代码)
Typeorm .loadRelationCountAndMap 返回零Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
MS SQL:ISDATE() 是否应该返回“1"?什么时候不能MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否应该返回“1?什么时候不能投射为日期?)
将一天的名称转换为其整数表示Converting the name of a day to its integer representation(将一天的名称转换为其整数表示)
如何在 SQL Server 中将 nvarchar m/d/yy 转换为 mm/dd/yHow to convert nvarchar m/d/yy to mm/dd/yyyy in SQL Server?(如何在 SQL Server 中将 nvarchar m/d/yy 转换为 mm/dd/yyyy?)