我正在关注在Microsoft Visual Studio 2017社区版中使用C#的教程。我应该在项目中添加一个新的SQL数据库,并将其扩展名为.sdf。
在本教程中,他们从IDE随附的模板菜单中选择了它,但是我的没有正确的选择。我看到的唯一数据库是“基于服务的数据库”,它使用.mdf扩展名,并且还向我抛出一个小错误/警告:
有人知道如何解决此问题吗?我几乎是个初学者,因此错误消息对我而言毫无意义,如果不完成此步骤,我将无法真正继续本教程。非常感谢任何可以在这里为我提供帮助的人,我一定会投票支持最有帮助的答案。
_________________________编辑:
我已经进入该屏幕了……好像我必须选择正确的屏幕,但是我之前从未使用过该数据库的东西,所以我真的不知道该怎么做
在Microsoft Visual Studio 2017中创建SQL Server Compact Edition数据库文件
Microsoft似乎已弃用SQL Server Compact,建议改用SQL Server Express。
The file extension for SQL Server Compact DB data files is SDF so just plan to the use SQL Server Express and its correlated MDF extension for its DB data file(s).
Posted by Srini [MSFT] on 2/18/2013 at 11:52 AM
SQL Server compact edition is in deprecation mode with no new releases planned near future. Last release SQL CE 4.0SP1 (and earlier releases that are still in the support cycle) will continue to be supported through its lifecycle and Microsoft is committed to fix any major, production blocking issues found in these releases. At this point, we don't consider this issue to be in that category and hence we are closing this issue.
在台式机/笔记本电脑部署中,对于许多当前用户来说,迁移到SQL Server LocalDB / SQL Express是一种可能的选择(http://msdn.microsoft.com/zh-cn/library/hh510202.aspx)
弃用
2013年2月,Microsoft宣布已弃用SQL Server Compact Edition。
尽管没有计划任何新版本或更新,Microsoft仍将通过其标准生命周期支持策略继续支持SQL Compact。这项支持将于2021年7月结束。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句