A database user is a database-level security principal that authorizes a login to access objects in a specific database. A login authenticates to the SQL Server instance; a user authorizes access within MyBGList. This separation provides granular control over which databases each credential can access. section 4.2.4
Configure API access with two related security objects:
- Add a login to authenticate against the local SQL Server instance. section 4.2.4
- Add a user to authorize that login inside the MyBGList database. section 4.2.4
MyBGList API credentials
After creating the MyBGList database in SQL Server Management Studio, create credentials that the web API can place in its connection string. The login authenticates to SQL Server, while the MyBGList user grants database-specific access. section 4.2.4
Use the SSMS view to inspect the MyBGList user and its role membership. section 4.2.4
