使用我的C#程序以编程方式安装SQL Server [英] Installing SQL Server programatically with my C# program

查看:84
本文介绍了使用我的C#程序以编程方式安装SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用我的C#代码安装SQL Server 2005或2003.请告诉我如何在程序中安装sql server,并提供一些代码示例或论坛.

谢谢大家.
Wynne C

I want to install SQL Server 2005 or 2003 with my C# code. Please tell me how to install sql server with my program and give me some code examples or forums.

Thanks all.
Wynne C

推荐答案

您需要转到项目属性"页面.在发布"下,您需要单击先决条件"按钮.然后,您需要选择要包含的SQL Server Express版本,选择是要客户端下载文件还是应将文件包含在可执行文件中,然后按OK.瞧!
You need to go to your Projects Properties page. Under Publish, you need to click on the Prerequisites button. Then you need to select the version of SQL Server express you want to include, select whether you want the client to download the file or whether the file should be included with your executable, then press OK. Voila!


http://lmgtfy. com/?q = Install + SQL + Server + With + C%23 + Application [

这篇关于使用我的C#程序以编程方式安装SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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