Using TAdoConnection in D5 to connect to a local Sql server on a 64-bit Windows 7 machine using a sa account with a password, I get the error message โlogin failed for user saโ even though I created a TAdoConnection ConnectionString to enable the password . By the time the BeforeConnect ConnectionString event occurs, it no longer contains a password. I can set a password in the WillConnect event, and then the connection will work fine.
My question is, what is removing the password from ConnectionString? Maybe some security features were added in W7 - I donโt remember how this problem arose in XP.
Btw: this problem still occurs even if I set Persist Security Info to true in ConnectionString - the password is not even saved in DFM.
source share