Can Tableau Desktop be automatically refreshed when the database is updated

本小妞迷上赌 提交于 2019-12-13 02:39:14

问题


I'm using Tableau Desktop 9.0 to create a visualization by extracting the data from DB2 database. But this database is updated everyday. That is, at the every time the data in the database changes. So is it possible for me to schedule a task of refreshing the extracted data source automatically at specific interval of time so that, after updating the report should reflect the results accordingly. Can this be done through Tableau Desktop automatically? The main thing is that it can easily be done on Tableau Server as known. But I cannot afford for a Server so I'm trying to get an answer is it possible with the Tableau Desktop or not.


回答1:


Use the Tableau Data Extract Command-Line Utility in a batch script (like DOS/cmd or PowerShell) and schedule the batch script to run on the Windows Task Scheduler.




回答2:


Assuming you're using Windows. Use Task Scheduler to schedule (a variation of) the following Powershell script on a daily basis.

C:\Program Files\Tableau\Tableau 9.0\bin>tableau refreshextract--server
https://blah_blah_server_name --username YourServerSignIn --password 
YourServerPwd  --datasource "Some_Table" --source-username YourDatabaseSignIn
--source-password YourDatabasePassword


来源:https://stackoverflow.com/questions/30108521/can-tableau-desktop-be-automatically-refreshed-when-the-database-is-updated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!