Add *.mdf file to C# Project

后端 未结 4 1947
暖寄归人
暖寄归人 2020-12-12 05:01

I\'m using Visual Studio 2005. I create a project, not Web Project, just Windows application.

I remember that Access Database File can be added into a project. I don

4条回答
  •  没有蜡笔的小新
    2020-12-12 05:31

    You can read from an Access file (*.mdb) in your app without any other requirements because the core Jet engine used by Access is included as part of Windows — it's built in. Sql Server is not included as part of Windows, and so you cannot use an *.mdf file in your app unless Sql Server has been installed and you have appropriate permissions for it.

    It is possible to distribute either Sql Server Express Edition or Sql Server Compact Edition (recommended) with your app. Another option is SqlLite, which has a fully-managed database engine available.

提交回复
热议问题