Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’
Well, the error is pretty clear, no? You are trying to connect to your SQL Server with user “xyz/ASPNET” – that’s the account your ASP.NET app is running under. This account is not allowed to connect to SQL Server – either create a login on SQL Server for that account, or then specify another valid … Read more