I developed an ASP.NET MVC application which queries an SQL Server database. Until now, I used the sa login to query my DB but I know this is not a good idea.
My question: I don’t know how to proceed to use another account to access my DB from my application.
- Do I have to create a new login in
\Security\Logins\
or
- Do I have to create a new user in
\Databases\PLATONDB\Security\Users\

Thanks.
You will need both.
A user or group for \Security\Logins\ and an assignment in \Databases\PLATONDB\Security\Users\,
which can be done in one step by setting the default database for the Login to PLATONDB