> 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

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](https://docs.devolutions.net/rdm/kb/how-to-articles/implement-custom-login-mode/) 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.

![](https://cdnweb.devolutions.net/docs/RDMW4154_2024_3.png)

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.

![](https://cdnweb.devolutions.net/docs/RDMW4153_2024_3.png)

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).

![](https://cdnweb.devolutions.net/docs/RDMW4155_2024_3.png)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
