We could only log in using Windows authentication while on the server itself. Once we have developed this, we will run the command:
ALTER LOGIN sa WITH PASSWORD = 'your_password_here' UNLOCK
in the SQL management studio, fixed the password for entering the web.config file and everything works.
It turns out that password policies can be applied in SQL Server 2005, so repeated incorrect logins blocked the account.
source share