更改app.config的连接字符串值 [英] change the connection string values the app.config

查看:60
本文介绍了更改app.config的连接字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改连接字符串值

I am trying to change the connection String values

connectionString ="Data Source = localhost;初始目录= Tracker;持久安全信息= false;用户ID = sa;密码= p @ ssw0rd"

connectionString="Data Source=localhost;Initial Catalog=Tracker;Persist Security Info=false;User ID=sa;Password=p@ssw0rd"

在我的用户界面中

.谁能帮助从Windows应用程序的用户界面更改设置?

from my user interface. Could any one help to change the settings from the user interface in the windows application?

推荐答案

如果这是Windows应用程序,则无需更改app.config文件即可更改活动数据库连接.我已经在我的博客上写过有关的内容.

If this is a Windows application then you don't need to change the app.config file to change the active database connection. I've written about this on my blog.

这篇关于更改app.config的连接字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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