Embedding SQL server express 2005 with my application

送分小仙女□ 提交于 2019-12-06 13:55:40

问题


How can I embed Sql server 2005 express edition with my Setup package as one file?

Thanks.

P.S:It's a Windows Application.


回答1:


See http://msdn.microsoft.com/en-us/library/bb264562.aspx for embedding instructions.

Don't let the "Using a Wrapper" section intimidate...You won't need that. But you will need the command line switches. The installer is a single executable that can be fired off from your main installer, and the command line switches provide all of the control you will need for a successful installation.

See also here:

Configuring SQL Express During Installation http://blogs.msdn.com/sqlexpress/archive/2006/09/20/763956.aspx.




回答2:


Well technically, to really embed a database, you'd have to use something like SqlCe, SQLite, etc. SQL Express still runs as a service, so I don't know if you can really embed it.



来源:https://stackoverflow.com/questions/900866/embedding-sql-server-express-2005-with-my-application

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