Connecting through Sql Server’s Management Studio works, however, it will not connect through the web.config connection string.
<add name="cnString" connectionString="Data Source=(local); Initial Catalog=MyDB; User ID=andrewbb; Password=myPassword;" providerName="System.Data.SqlClient" />
It returns:
Login failed for user ‘andrewbb’. Reason: Password did not match that for the login provided. [CLIENT: ]
Both the password and user id are lowercase. Ideas?
Your log-in details need to keep all the time.
Include following in connection string to keep security info.
Refer : Difference Between Persist Security Info And Integrated Security?