在安装过程中使用c#编码如何在SQL Server中运行数据库脚本来创建数据库和表.

问题描述:

报价:

我希望在安装过程中,在安装应用程序的过程中,我的数据库脚本也可以在SQL Server中运行并创建数据库和表但是我不知道该怎么做,请有人帮我.

i want that,when my application is installing my database script also run and create database and table in SQL server while installation process but i dont know how to do it ,please somebody help me.


看一下链接:
使用Visual Studio安装程序安装sql server数据库 [启动条件操作 [ ^ ]

有关更多信息,请参考关于Windows Installer-命令行选项 [ ^ ] MSDN文章.

除此之外,您可以使用WMI脚本来安装您的msi文件.要了解如何执行此操作,请参阅 [
Hi,
Take a look at the links:
Install sql server database with visual studio setup[^]

Try reading LaunchConditions Action [^]

For more information, please refer to the About Windows Installer - Command Line Options[^] MSDN article.

Besides that, you can use the WMI script to install your msi file. To learn how to do this, please see this[^] article.



--Amit


检查此

部署您的应用程序和数据库 [
Check this

Deploy your Application and Database[^]


Plz Express Littlle弄糊涂了
Plz Express Littlle Mre its confusing