> 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/fr/knowledge-base/troubleshooting-articles/sql-azure-troubleshooting.md).

# Dépannage SQL Azure

### Problème 1 : Impossible de se connecter à la base de données

Lorsque vous tentez d'utiliser un espace de travail Azure SQL, vous recevez ce message d'erreur :

```
Unable to connect to the database!

Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword). Error code: 0x2. For more information, see http://go.microsoft.com/fwlink/?LinkID=513072
```

### Solution 1

Pour résoudre ce problème, veuillez consulter [Azure SQL](https://docs.devolutions.net/fr/rdm/workspaces/workspace-types/native-workspaces/microsoft-azure-sql/).

### Problème 2 : Impossible d'enregistrer l'utilisateur dans la base de données

Lors de la création d'un utilisateur avec l'authentification par compte Entra ID, vous recevez ce message d'erreur :

```
Unable to save the user in the database!

Principal '...' could not be created. Only connections established with Active Directory accounts can create other Active Directory users.
```

### Solution 2

Vous devez d'abord définir votre administrateur Entra ID SQL Server via le portail Azure, puis vous connecter à Remote Desktop Manager à l'aide de ce compte Entra ID. Vous pourrez alors créer de nouveaux comptes Entra ID (administrateurs et non-administrateurs). Ces nouveaux administrateurs pourront également effectuer la même opération.

Pour plus d'informations, consultez [Configurer l'administrateur Entra ID](https://docs.devolutions.net/fr/rdm/workspaces/workspace-types/native-workspaces/microsoft-azure-sql/enable-azure-active-directory-authentication/configure-admin/).


---

# 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/fr/knowledge-base/troubleshooting-articles/sql-azure-troubleshooting.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.
