Sql connectionstring "Old Password" attribute not working on OLE DB Driver for SQL Server - getting error "Invalid connection string attribute"
We have downloaded the OLE DB diver :
https://learn.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver16
In our connection string we added the Old Password attribute.
The connection string has the following structure:
'Provider=SQLOLEDB.1;Data Source=localhost;Initial Catalog=DatabaseName; User ID=UserName;Password=password;Old Password=oldpassword'
This gives the error: "Invalid connection string attribute"
However, when I install the ODBC driver:
https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16
The "Old Password" attribute works.
'Provider=MSOLEDBSQL;Data Source=localhost;Initial Catalog=DatabaseName; User ID=UserName;Password=password;Old Password=oldpassword'
According to the documentation (https://learn.microsoft.com/en-us/sql/connect/oledb/features/changing-passwords-programmatically?view=sql-server-ver16)"learn.microsoft.com") - the Old Password attribute should work. We would like to avoid having to ask clients to deploy additional drivers if at all possibel.
Can somebody confirm that this should work with the OLE driver?
If it is designed to work with the OLE driver how do we fix the attribute issue?