---
schema_version: "1"
id: 47c368d6e0214370d89cf01a73971b993208c282b75bc8bc9b969337d5974b15
title: 关闭数据源
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/pro/desktop/close_connection.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/zh-cn/close_connection.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 83b4790499f23f6afefa193b5414b099699254bffea5c5b9ebd13722433a6d97
description: Understand how closing a data source disconnects Tableau without modifying the data.
---
[跳转到主要内容](#main-content)

# 关闭数据源

您随时可以关闭数据源。这样不会修改数据源。只是断开 Tableau 与数据的连接，因此无法再查询数据。此外，还会从“数据”窗格中清除数据源，并清除与数据源关联的所有打开的工作表。如果意外关闭了数据源，请使用“撤消”按钮将其重新打开。通过执行以下操作之一关闭数据源：

- 右键单击（在 Mac 上按住 Control 单击）“数据”窗格顶部的数据源，并选择“关闭”。
    
    ![“编辑数据源”下拉菜单上的“关闭”菜单选项。](/tableau/next/zh-cn/pro/desktop/zh-cn/Img/close_connection1.png)
- 在“数据”菜单上选择数据源，然后选择“关闭”。
    
    ![“数据”下拉菜单上数据源的“关闭”菜单选项。](/tableau/next/zh-cn/pro/desktop/zh-cn/Img/close_connection2.png)

**注意：**在 Web 上进行制作时，任何工作表都不能使用数据源，因此您可以关闭数据源。