Video | Tableau | Data prep | Data engineering

How to write to a database

Tableau Prep can finally write straight back to a database — here's the full feature, warts and all.

  • Tableau Prep 2020.3 lets you write flow output directly to a database via a new 'Database table' output option, alongside the existing 'Publish data source' option.
  • Only certain relational databases are supported at launch: SQL Server, MySQL, Postgres, Amazon Redshift, Snowflake, Oracle and Teradata.
  • You get three write modes — create table, append to table and replace data — each behaving exactly as named.
  • Appending without an ID or timestamp key is risky, since you can't tell which rows arrived when; treat each write as a snapshot and add a time key to separate states.
  • Writing to a database is preferable to publishing a data source in enterprise contexts because the data becomes available to other non-Tableau systems.

Release Notes by Tableau: Store your prepped data from Prep Builder in a central location that can be leveraged throughout your organisation. Govern and scale the investments you’ve made in your databases by providing a visual and direct field mapping experience to ensure your prepped data ends up where it should be.0:00 Intro0:28 How to install a Postgres DB on your Windows 10 Machine. https://youtu.be/4J0V3AaiOns0:55 Setting up the example flow using Superstore flow1:33 Change output to Write to DB 2:00 Connecting to your DB4:00 Choosing your table from your DB5:00 Different write types https://www.youtube.com/watch?v=PnmiKdXqG\_0 6:00 Write the table6:53 Checking the table in Postgress7:23 Playing around with the options. -------Join my Discord Server. https://discord.gg/shBuxXr it’s a little sparse at the moment but hang in there.