Structured Query Language (SQL) is used to manipulate and extract information from an SQL database. Klipfolio lets you connect to an SQL database and execute an SQL query to retrieve information to create a data source. This article provides basic instructions on creating an SQL database data source. If, after following these instructions, you are still unable to connect to Klipfolio, refer to these troubleshooting tips.
The following JDBC drivers are supported:
- MS SQL (Microsoft SQL Server)
- Oracle Thin
- Oracle OCI
- Sybase SQL Anywhere
Note: ODBC drivers are not supported. Also, have you added our Klipfolio IP addresses to your allow list? See the full list of Klipfolio's Allow list IP addresses.
Creating an SQL database data source
To create an SQL database data source:
- Click Data Sources in the left navigation bar.
- Click Create a New Data Source and select SQL Query.
- Fill in the following fields and select whether you want to Include column headers:
- SQL Query
There are two options for querying an SQL database:
- Port forwarding to an external IP address
- Using an external SSH tunnel
If you followed the instructions above but still cannot connect to Klipfolio, consider the following:
- Have you added our Klipfolio IP addresses to your allow list? See the full list of Klipfolio's Allow list IP addresses.
- Is your database's external IP address publicly accessible and are you able to resolve the IP address to your database server? To test internally, ping or telnet your database's IP address. If unsuccessful, check your firewall configuration.
- For multiple instances of SQL server, check your SQL Server Configuration Manager to verify you have the correct port for the database to which you want to connect. The first SQL instance uses port 1433, other instances might use a different port number.
- Is the port open? Go to Port forwarding tester to test your port's status. If the port is not open, it might be a bad route or the destination SQL device might not be properly configured to listen to that port.
- For an SSH Tunnel, is the domain account valid?
- In Klipfolio, at the connect to an SQL database page, are you entering the IP address of the database server as the Host Name? Note: The Host field should not point to the SQL Server instance, just to the local host. For example, local host, not localhostSQLEXPRESS2012
- In Klipfolio, at the connect to an SQL database page, are you entering the actual database name at the Database field?
- Are you using an SQL Stored Procedure? When working with Klipfolio, you cannot use temporary tables or multi-selects in your Stored Procedure.
Tip: You can use a query of Select 1 to test an SQL connection.