So..I managed to almost finish all my problems.But now i deal with another one. I used this connectionstring :
SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;Database=Database1.mdf");
And it throws the next error:
Login failed for user '
If i remove the .mdf extension it throws the same error
Now if i'll add the following to the string:
Integrated Security = true
It throws this:
Cannot open database "Database1.mdf" requested by the login. The login failed. Login failed for user 'rBcollo-PC\rBcollo'.
P.S for Integrated Security = false it throws the "Login failed for user'"
The problem is that i'm not using any username or password for the Database.
Any help,please?