Question

Though it seems a very basic question but I am fed up with this problem. Every day I get System.Data.SqlClient.SqlException Login failed for user 'sa'.
Then I reset 'sa' password and my asp.net application starts working.
I have searched this error, almost every post says that its a lockout problem but no one suggests the solution. Please help.

No correct solution

OTHER TIPS

The first, most dangerous, thing you're doing wrong is using the sa account for your asp.net application.

Set up a different account for your application. Grant it only the permissions it needs to function correctly.

And if your ASP.net application isn't getting the password wrong, which it almost certainly isn't, then something else is trying to connect to your SQL Server. Is it accessible to the outside world? You'll want to change that too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top