Connecting to Access databases

Microsoft Access is a good tool to store smaller datasets in a relational database format without purchasing and installing complete data storage solutions, such as Microsoft SQL Server, Oracle, or MySQL. Tableau provides an option to connect to Access databases.

Getting ready

Let's use the Access database (Sample - Coffee Chain.mdb) that came with the standard installation. As with the Excel file used in the previous recipe, unless you made any customization during installation, the database file should be found by navigating to Documents | My Tableau Repository | Datasources.

How to do it...

Once you have located the Access database file, perform the following steps to connect to the sample Access database file:

  1. From Tableau's main screen, click on Connect to Data.
  2. Under the In a file option, select Microsoft Access as the connection option.
  3. Browse and select the file Sample - Coffee Chain.mdb.
  4. Tableau will determine and list tables found in the database and will ask whether to analyze a single table or a query. Select CoffeeChain Query and hit OK.
  5. Use the Connect live option to connect to the data from the Access database.
  6. You'll see that Tableau loaded the query from the Access database and also determined the data types using Microsoft's Jet Engine Driver.

How it works...

Using Microsoft's Jet Engine Driver, Tableau connects to Microsoft Access and determines the data types of the fields of a table. Just like the connection to Excel files, Tableau allows the user to select a single table, multiple tables, or write custom SQL commands.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset