如何使用.net软件包安装sql? [英] How to install sql with .net package?

查看:102
本文介绍了如何使用.net软件包安装sql?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我开发了Windows应用程序,现在该发布给客户了,该应用程序使用.net framework 2.1,ADO .net和SQL Server2005.

要使应用程序正常工作,必须定义先决条件,即SQL Express和.net框架工作

S.Saad
ema2000_t@yahoo.com


I developed a windows application, and it''s time to release to the customer, the application uses .net framework 2.1, ADO .net, and SQL server 2005.

To let the application work, you must define the prerequisites which is SQL express and .net frame work

S. Saad
ema2000_t@yahoo.com

推荐答案

您可以使用免费许可证重新分发SQL Server 2005.安装程序下载位于此处 [此处 [
You can redistribute SQL Server 2005 with a free license. The Installer download is here[^] and the redistribution agreement is here[^].


写道:

此外,如果目标PC上不存在.net Framework,我该怎么办?该程序包不起作用,不是吗.

Also, what I do if the .net Framework is not present on the target pc? The package will not work, isn''t it.



正确的.我通过编写Win32 C ++程序来处理此问题,该程序检测我是否具有.NET和其他依赖项,然后在运行MSI之前安装它们.分发数据库的方式是,我编写了自己的程序,该程序连接到SQL Server并运行SQL脚本来创建表和proc.



Correct. I deal with this by writing a Win32 C++ program that detects if I have .NET and other dependencies, then installs them before running my MSI. The way I''d distribute a database, is that I wrote my own program which connects to SQL Server and runs SQL scripts to create the tables and procs.


这篇关于如何使用.net软件包安装sql?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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