1 of 1 people found this helpful
I have been trying but not getting any result.
Can some one help me on the baove question.
Hi Jostna, is there a reason you're not connecting directly to the database with Tableau, then generating the extract from there?
Jostna: Sorry for the delay in getting you a response on this. Make sure that you've downloaded the Python Tableau SDK for your platform (https://onlinehelp.tableau.com/current/api/sdk/en-us/help.htm#SDK/tableau_sdk_installing.htm%3FTocPath%3D_____3 ). We have samples in there that show you how to create an extract using Python. You should be able to adapt that sample to get data out of DB2. You will need to use IBM's Python driver for DB2 (GitHub - ibmdb/python-ibmdb: Automatically exported from code.google.com/p/ibm-db ). Check the 'tests' folder in the GitHub repo as there are lots of Python scripts there you should be able to adapt to connect to your DB2 db and get your data.