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

# Risoluzione dei problemi di SQL Azure

### Problema 1: impossibile connettersi al database

Quando si tenta di utilizzare uno spazio di lavoro Azure SQL, viene visualizzato questo messaggio di errore:

```
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
```

### Soluzione 1

Per risolvere questo problema, consulti [Azure SQL](/rdm/it/getting-started/workspaces/workspace-types/alternative-workspaces/microsoft-azure-sql.md).

### Problema 2: impossibile salvare l'utente nel database

Quando si crea un utente con autenticazione tramite account Entra ID, viene visualizzato questo messaggio di errore:

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

### Soluzione 2

Deve innanzitutto definire l'amministratore Entra ID del suo SQL Server tramite il portale di Azure, quindi accedere a Remote Desktop Manager utilizzando tale account Entra ID; da lì potrà creare nuovi account Entra ID (amministratori e non amministratori). Anche quei nuovi amministratori potranno fare lo stesso.

Per maggiori informazioni, consulti [Configurare l'amministratore Entra ID](/rdm/it/getting-started/workspaces/workspace-types/alternative-workspaces/microsoft-azure-sql/enable-entra-id-authentication/configure-the-entra-id-administrator.md).


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/rdm/it/knowledge-base/troubleshooting-articles/sql-azure-troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
