> 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/sqlexception-incorrect-syntax-near-usdname-error-for-devolutions-server-workspace.md).

# SqlException - erreur de syntaxe incorrecte près de '$name' pour l'espace de travail Devolutions Server

Les utilisateurs peuvent recevoir l'erreur `SqlException – Incorrect syntax near '$NAME'` dans leurs journaux lors de la connexion à un espace de travail Devolutions Server dans Remote Desktop Manager.

### Solution

Pour remédier à ce problème, les utilisateurs doivent modifier le niveau de compatibilité de la base de données Devolutions Server dans SQL Server Management Studio (SSMS) afin qu'il corresponde à la version actuelle de SQL. Voici les étapes à suivre :

1. Connectez-vous à votre instance SQL Server dans SSMS.
2. Faites un clic droit sur la base de données Devolutions Server, puis sélectionnez ***Propriétés***.
3. Dans la page ***Options***, définissez le paramètre ***Compatibility level*** à au moins 130 (une valeur plus élevée est possible si nécessaire).
4. Cliquez sur ***OK*** pour enregistrer les modifications.


---

# 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/sqlexception-incorrect-syntax-near-usdname-error-for-devolutions-server-workspace.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.
