使用.Net Windows应用程序部署SQL数据库.

使用.Net Windows应用程序部署SQL数据库.

问题描述:

大家好,

我已经使用VS 2008和SQL 2008创建了一个小型.Net Windows应用程序.我现在想创建一个安装文件,以将其提供给用户进行安装.这是一个独立的应用程序,它将在客户端计算机上运行,​​数据库将驻留在同一台计算机上.

如何创建可以在单个设置中安装应用程序和数据库的安装文件.
任何帮助/建议将不胜感激.


预先感谢,
Deepak.

Hello All,

I have created a small .Net windows application using VS 2008 and SQL 2008. I now want to create a setup file to give it to users for installation. This is a standalone application which will run on a client machine and database will be residing on the same machine.

How can I create a setup file which can install both, the application and database, in single setup.
Any help/suggestions would be highly appreciated.


Thanks in advance,
Deepak.

在每次安装应用程序时都部署SQL Server可能会非常昂贵(每次安装数以千计).相反,我会使用SQL Server CE,它是内置在.Net中的SQL Server的较小版本.它与完整的SQL Server非常相似,但是没有诸如存储过程和Entity Framework提供的本机支持之类的功能.
To deploy SQL Server with each install of the application is probably going to be prohibitively expensive (thousands per install). Instead, I''d use SQL Server CE, which is is smaller version of SQL Server that is built into .Net. It is very similar to the full SQL Server, but doesn''t have some things like stored procedures and native support by Entity Framework.


答案是
打包和安装.net [
This has the answer
Package and Installation .net[^]