> 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/troubleshooting-articles/integrated-security-issues-with-sql-server.md).

# Integrated security issues with SQL Server

Since issues can arise from multiple sources, when setting up integrated security on an SQL server workspace, we detailed a couple of steps to help out and diagnose the source.

### Steps

#### Retrieve log details

1. In Remote Desktop Manager go to ***Help – Application Logs – Report (tab)***.
2. Click ***Delete All***.
3. In ***File – Settings – Advanced***:
4. Raise the ***Debug level*** to 1.
5. Uncheck ***Disable stack trace***.
6. Click ***OK***.
7. Reproduce the issue.
8. Once the issue is reproduced, go to ***Help – Application Logs – Report (tab)***.
9. Click ***Send to Support***.
10. If you already have an ongoing ticket with us, please specify the ticket number in the ***Subject***.

#### Validate if the database is contained

{% hint style="info" %}
To learn more on contained database, see Microsoft's [Contained database – SQL Server](https://docs.microsoft.com/en-us/sql/relational-databases/security/contained-database-users-making-your-database-portable?view=sql-server-ver15).
{% endhint %}

Run the following script to find out if your database is contained. Make sure to replace ***rdm-database-name*** with your Remote Desktop Manager database name.

`SELECT name, containment, containment_desc, compatibility_level FROM sys.databases WHERE name = 'rdm-database-name';`

#### Validate if the SQL server is joined to the domain

If you execute the statements manually in SSMS (SQL Server Management Studio) what do you get?


---

# 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/troubleshooting-articles/integrated-security-issues-with-sql-server.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.
