连接具有动态更改的密码的数据库 [英] Connect a database that has a dynamically changed password

查看:165
本文介绍了连接具有动态更改的密码的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用XML或文本文件设置数据库密码?

How can I set the database password using an XML or text file?

推荐答案

您的意思是用户登录名?

You mean the user Login?

ALTER LOGIN Account_Name WITH
PASSWORD = @newPassword
OLD_PASSWORD = @oldPassword;


没有人给我这么难过的解决方案!
No one giving solutions to me so sad!


为什么不在app.configuration文件中创建2个设置?

连接字符串的1个设置
1个密码

在运行时在应用程序中重构它们?
Why not create 2 settings in the app.configuration file?

1 setting for the connection string
1 for password

Reconstruct these in your application at runtime?


这篇关于连接具有动态更改的密码的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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