On this page
Overview
You will have to configure at least one data source or data source profile before you can use SQL, SQL File or SQL Query macros.
Description
This page describes the ways of configuring a data source in the SQL for Confluence app to access a database. A data source defines the access parameters, which includes credentials.
- Access parameters and database access information for a data source profile or an application server based data source remain the same.
- The credential information for accessing databases remains the same for either of the methods mentioned below.
Method | Primary Benefit | Key Attributes | Documentation | Express Edition | Pro Edition |
---|---|---|---|---|---|
Application Server Based Data Source | Performance |
| Configure Application Server based Data Sources | ||
Data Source Profiles | Convenience |
| Configure Data Source Profiles |
Macro Security for data source access control
- You can configure data sources using either or both of the methods mentioned above. For instance, use a data source profile for low-use scenarios like testing, and then switch to a server based data source for long-term use.
- You can use Macro Security for Confluence to control access to specific data sources, for the methods mentioned above.
- For heavy use scenarios, use the Cache for Confluence app to reduce the load on your server with a faster response time.
The data source is referenced using the dataSource parameter (data source name). The exact configuration of a data source is specific to each database and application server. A Confluence administrator must set up the configuration, and the Confluence application server must be restarted for changes to take effect. The configuration has to be done very carefully as any errors in doing so, will render the data source unusable. Every database accessed by Confluence requires a data source configuration.
Next step: Configure application server based data sources
With global settings now in place, the next step is to bring you up to speed on data sources and data source profiles.