Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将连接字符串中指示的用户口令更改为所提供的新口令。
Public Shared Sub ChangePassword( ByVal connectionString As String, ByVal newPassword As String )
public static void ChangePassword( string connectionString, string newPassword )
connectionString 包含连接至想要连接的数据库服务器所需信息的连接字符串。连接字符串可以包含用户 ID 和当前口令。
newPassword 要设置的新口令。此口令必须遵守服务器上设置的任何口令安全策略,包括最小长度、对特殊字符的要求等等。
ArgumentNullException connectionString 或 newPassword 参数为空。
ArgumentException 连接字符串包括使用集成安全性的选项。