You may need to switch the data source a workbook refers to, such as when moving from a development phase to a production phase or changing the connection database. Use one of the following methods to replace the data source depending on your situation.
Select the option that best fits your requirements. As a best practice, always save a backup copy of your workbook and data sources before replacing connections.
This is the standard method available in Tableau Desktop and can be used for all types of data sources. However, this method cannot be used if you wish to replace a published data source with a published data source from a different site. For details, see Replace Data Sources.
Note: Some settings in the workbook, such as default properties, may be reset using this method. For details, see What Gets Reset or Lost After Replacing a Data Source in Tableau Desktop.
This operation is only available between data sources published to the same Tableau Server or Tableau Cloud site.
This operation is only available between published data sources but supports replacing data sources across different sites (e.g., moving from a test site to a production site).
For details on moving workbooks and data sources between sites, see Move Workbooks and Projects Between Sites.
By publishing a new data source with the same name as an existing published data source, you can replace the content while maintaining the connection. This allows for bulk replacement of connections for many workbooks, but requires careful verification due to the wide impact.
Note: If you want to keep the original data source, it is recommended to make a copy beforehand following the steps in Edit and test changes. To revert changes, see Restore a data source revision
If issues occur after replacing the data source, refer to the following Knowledge Articles:
005232823

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.