First of all i search answer on similar question I try:Developer Command Propmpt and this:
[Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'](https://stackoverflow.com/questions/2575907/cannot-open-database-test-requested-by-the-login-the-login-failed-login-fail)
I even formatted my pc. But still i have this problem. For long time my application connects to local MSSQl Server without any problems. But in one moment i decide to delet my database using Server Menager. And this start to happend.
my C# code to connect(it works before I decide to delete database, and replaced it):

```
using (SqlConnection con = new SqlConnection(@"Server=tcp:DESKTOP-56F50SS;Database=Test;
User ID=sa;Password=Temptemp;Trusted_Connection=False;Encrypt=False;"))

```