> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/implement-the-database-login-mode.md).

# Implement the database login mode

Create SQL Server users with Database login mode in Remote Desktop Manager, the basic authentication method for SQL and Azure SQL databases.

The ***Database login*** mode is the basic login method for Microsoft SQL and Microsoft Azure SQL databases. The present article describes how to create users in Remote Desktop Manager with the ***Database login*** mode.

{% hint style="danger" %}
Users authenticating with the ***Database login*** mode can use their Remote Desktop Manager credentials to directly access the SQL database. To prevent this usage, use the [Custom login mode](/rdm/knowledge-base/how-to-articles/implement-the-custom-login-mode.md) instead.
{% endhint %}

### Creating an SQL login/user

1. In Remote Desktop Manager, connect to the Microsoft SQL Server workspace with any database owner user.
2. In ***Administration – Users***, click on the ***Add user*** button.
3. In the ***General*** tab of the ***User management*** window, configure the user as follows:
   * In the ***Authentication type*** drop-down list, select ***Database***.
   * Enter a ***Username*** for the user.
   * In the ***Password*** field, enter a secure password. Use the ***Password generator*** tool (second button next to the field) to help create it. Alternatively, check the ***Integrated security*** box to use the current Windows session credentials to authenticate.
   * Make sure to check to ***Create database login/user*** box, otherwise the workspace will remain inaccessible until an administrator manually creates a login/user on the SQL server.
4. Click ***OK*** to save the new user configuration.

### Troubleshooting

Sometimes there is a mismatch between user rights in Remote Desktop Manager and in the SQL database. To remedy this, click on the ***Fix SQL login*** button (hammer icon).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/implement-the-database-login-mode.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
