---
schema_version: "1"
id: 5e41fa8b65172f4224c181e04f1a35e1344e02efdb3a28076d0c2dad3958ce14
title: 關閉資料來源
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/pro/desktop/close_connection.md
canonical_url: https://help.tableau.com/v0.0/pro/desktop/zh-tw/close_connection.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 5fd8095de154df7bea917b88c06e2bc127c96d483beedbeb90ddba8c52185663
description: Understand how closing a data source disconnects Tableau without modifying the data.
---
[跳至主要內容](#main-content)

# 關閉資料來源

您隨時可以關閉資料來源。這樣不會修改資料來源。只是斷開 Tableau 與資料的連線，因此無法再查詢資料。此外，還會從 \[資料\] 窗格中清除資料來源，並清除與資料來源關聯的所有開啟的工作表。如果意外關閉了資料來源，請使用 \[撤銷\] 按鈕將其重新開啟。透過執行以下操作之一關閉資料來源：

- 以右鍵按一下（在 Mac 上按住 Control 按一下） \[資料\] 窗格頂端的資料來源，並選取 \[關閉\] 。
    
    ![「編輯資料來源」下拉式功能表上的「關閉」功能表選項。](/tableau/next/zh-tw/pro/desktop/zh-tw/Img/close_connection1.png)
- 在 \[資料\] 功能表上選取資料來源，然後選取 \[關閉\] 。
    
    ![「資料」下拉式功能表上用於資料來源的「關閉」功能表選項。](/tableau/next/zh-tw/pro/desktop/zh-tw/Img/close_connection2.png)

**附註：**在 Web 上製作時，任何工作表都不能使用資料來源來關閉資料來源。