I have an asp.net website on a server and the db MS SQL 2005 on another server, the last few days the website show me this error message: ‘A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server)’
When i opened the DB server i found in the event viewer i found that there is a lot of fail login to the sql server from strange IPs, which are not ours, i think they are trying to hack the db, Note the db is window authentication.
My Question is, how to stop that?
The best thing you can do is deny access to your server’s SQL port on your firewall. The request will never reach your sever and you’ll be good to go. You probably want to deny 1433 and 1444.