如何使用C#以编程方式修改连接 [英] How I Can Modify Connection Programmatically Using C#

查看:47
本文介绍了如何使用C#以编程方式修改连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何以编程方式修改连接使用C#





http://s3.postimg.org/8yztz75hf/Capture.png [ ^ ]



在网络上的另一台PC上安装应用程序后,我需要用户选择服务器名字?

任何想法?

how i can modify connection Programmatically Using C#


http://s3.postimg.org/8yztz75hf/Capture.png[^]

after installing the application on another pc on the network , i need the user choose the server name ?
any idea?

推荐答案

你可以使用SqLConnectionStringBuilder。创建自己的表单供用户输入详细信息。



https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnectionstringbuilder%28v=vs.110%29.aspx [ ^ ]
You can use SqLConnectionStringBuilder. Create your own form for the user to enter details.

https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnectionstringbuilder%28v=vs.110%29.aspx[^]


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

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