在安装过程中使用c#编码如何在SQL Server中运行数据库脚本来创建数据库和表. [英] how to run database script create database and table in SQL server while installation process using c# coding.

查看:72
本文介绍了在安装过程中使用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


这篇关于在安装过程中使用c#编码如何在SQL Server中运行数据库脚本来创建数据库和表.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆