---
schema_version: "1"
id: 34cee3cc8c8799cc4e2218b7aac195a954944dc436a726769c08189cfc73fb8b
title: 配置数据源连接设置
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/server/runas_datasource.md
canonical_url: https://help.tableau.com/v0.0/server/zh-cn/runas_datasource.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 08e4d49f52bfbb14977f5499053064ed2e003bbb5f3b520fb8a8b57cebc5cf68
description: Configure data source connection settings for Windows-authenticated data.
---
[跳转到主要内容](#main-content)

# 配置数据源连接设置

若要在用户正在访问的工作簿连接到经过 Windows 身份验证的实时数据源时自动对这些用户进行身份验证，请在选中“使用 Windows 身份验证”选项的情况下配置 Tableau 数据连接：

<table class="Simple" style="border-top: none; border-bottom: none; border-left: none; border-right: none;"><colgroup><col title="1" style="width: 47;"><col title="2" style="width: 5;"><col title="3" style="width: 48;"></colgroup><thead><tr><th style="border-bottom: none; border-right: none; border-top: none; border-left: none;">Windows 身份验证</th><th style="border-bottom: none; border-left: none; border-right: none; border-top: none;">&nbsp;</th><th style="border-bottom: none; border-left: none; border-top: none; border-right: none;">用户名和密码</th></tr></thead><tbody><tr><td style="border-top: none; border-bottom: none; border-right: none; border-left: none;">使用服务器的用户运行身份服务帐户进行身份验证</td><td style="border-top: none; border-bottom: none; border-left: none; border-right: none;">&nbsp;</td><td style="border-top: none; border-bottom: none; border-left: none; border-right: none;">每个 Tableau Server 用户都会看到要求提供数据库凭据的提示</td></tr><tr><td style="border-top: none; border-right: none; border-bottom: none; border-left: none;"><img src="https://help.tableau.com/v0.0/server/zh-cn/Img/auth1.png" style="text-align: left;" alt="带有空白字段的对话框，用于登录 Microsoft SQL Server 以进行身份验证。"></td><td style="border-top: none; border-left: none; border-right: none; border-bottom: none;">&nbsp;</td><td style="border-top: none; border-left: none; border-bottom: none; border-right: none;"><img src="https://help.tableau.com/v0.0/server/zh-cn/Img/auth2.png" style="text-align: left;" alt="一个对话框，其中输入了用于登录 Microsoft SQL Server 进行身份验证的用户名和密码。"></td></tr></tbody></table>

了解运行身份服务帐户如何代表组织中的用户访问数据非常重要。在某些情况下，用户可能会无意中访问其用户帐户未获得明确许可的数据。在允许用户使用运行身份服务帐户访问数据之前，请查看[使用运行身份服务帐户访问数据](https://help.tableau.com/v0.0/server/zh-cn/runas_access.htm)。