❔ Update-database error

string connectionString; if (string.IsNullOrWhiteSpace(ConnectionConfig.ConnectionString)) {
ConnectionConfig.ConnectionString = "Server=DAD\SQLEXPRESS;database=BA_ETicaretCore8523;Trusted_Connection=True;multipleactiveresultsets=true;"; } connectionString = ConnectionConfig.ConnectionString;
optionsBuilder.UseSqlServer(connectionString); } Hello, when I download a project related to .net core and edit the connectionstring and update the data-database, Login failed for user 'sa'. I'm getting an error can anyone help?
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
yusufkenangirgin
yusufkenangirginOP2y ago
@Divi Thank you for your anwer. You are right. I put \ \ before SQLEXPRESS; and I applied your method but I have same problem.
Patrick
Patrick2y ago
if the login failed then your username or password is incorrect
yusufkenangirgin
yusufkenangirginOP2y ago
I dont use username or password like this "Server=DAD\ \SQLEXPRESS;database=BA_ETicaretCore8523;Trusted_Connection=True;multipleactiveresultsets=true;"; I can run other similar project in the same way thank you @patrickk for your answer
Patrick
Patrick2y ago
Login failed for user 'sa'. I'm getting an error can anyone help?
this implies you're logging in with sa
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
yusufkenangirgin
yusufkenangirginOP2y ago
run this project on your computer and send me back please. This project the problem
Patrick
Patrick2y ago
that's entirely irrelevant it's not the project, it's the machine you need to understand what's going on.
yusufkenangirgin
yusufkenangirginOP2y ago
are you sure?
Patrick
Patrick2y ago
yes.
yusufkenangirgin
yusufkenangirginOP2y ago
you are wrong
Patrick
Patrick2y ago
given your error above, i am not 🙂
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server