I'm new to .NET Core (and .NET in general), and am struggling a bit with getting my web application to connect to an existing SQL server.
I've got rights to my SQL database, and I can get my web application to read/display data from the database (when running in Visual Studio 2017) when I'm logged into my Windows machine with my Active Directory domain account (that has rights on the database). But I'm trying to figure out how I can connect to the database using a separate/secondary domain user ID. Is this possible when using .NET Core?
I'm trying to tackle this because my web application will eventually communicate with a number of other databases. So I'm looking to use the same mechanism for all of them. And ideally I'm not looking to just set the application pool on the server to run with the ID, because I don't really want the same ID getting access to ALL the databases. Ideally I'm looking to separate out access rights to different IDs (sometimes the ID will have elevated access to certain databases).
Am I going to be able to connect to different databases using different domain IDs? Or should I just configure the application pool to run with a single ID and use that, or....?
Thanks!