如何更改C#代码中已过期的sql服务器密码? [英] How do I change a sql server password that has expired from C# code?
本文介绍了如何更改C#代码中已过期的sql服务器密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当您使用SqlConnection连接到MS Sql Server时,如果密码已过期,您将获得SqlException号:18487或18488.
When you are using a SqlConnection to connect to a MS Sql Server, if the password has expired you will get a SqlException Number: 18487 or 18488.
在连接尝试期间如何在代码中更改用户密码?
How can you change the user's password in code during the connection attempt?
推荐答案
使用静态
这篇关于如何更改C#代码中已过期的sql服务器密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文