When I run my mvc solution from another user it doesn’t connect to sql
I have created a simple mvc application in Visual Studio. I also created a database using EF Core code first approach. The database has Windows authentication. The connection string I used was Server=(local)\sqlexpress;Database=LibraryEmployeeDB;Trusted_Connection=True; I am supposed to send this project to my professor but when I tried to run the project from a different user on my computer it doesn’t work because I can’t connect to the database with the other user. I tried to change to Windows and Sql authentication and create a new user and add that to the connection string but that didn’t work either. I would be so grateful for any tips on how to solve this problem so that my professor can run the project as it is supposed to. Thank you!

Sachin SinghRank #66 · 26.2K reputationPosted Nov 8, 2020, 1:27 AM EST
Kiran MohantyRank #821 · 2.8K reputationPosted Nov 8, 2020, 1:07 AM EST
Oskar Waldebrink10 reputationPosted Nov 8, 2020, 8:17 PM EST
Khushbu SainiRank #783 · 2.9K reputationPosted Nov 7, 2020, 10:18 PM EST