Does user need SQL 2008 Express Installed if I deploy app with .mdf file?

点点圈 提交于 2019-12-01 08:22:48

问题


I'm making a Win app on the 3.5 framework. I'd like to include a database file with the app. This would a single-user db. I looked at the 2 different types of db files I can add, the sdf and mdf. Thw sdf (compact) db is missing some functionality I need, so I prefer the mdf. The description on the mdf file "Service oriented database file" leads me to believe that whoever installed my application would also have to install the SQL service required to access that mdf. Is this correct?


回答1:


Yes. MDF is just a file and needs a SQL Server database engine to use it.




回答2:


Yes, at a minimum SQL Express would be required. The advantage of the compact edition is that this requirement is eliminated since the database engine can be x-copy deployed.



来源:https://stackoverflow.com/questions/954419/does-user-need-sql-2008-express-installed-if-i-deploy-app-with-mdf-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!