SQL-file - 9.x
On this page
Description
This macro has similar parameters as the SQL macro and behaves similarly in most cases. There are two primary reasons for using sql-file:
- Security — it can be secured separately from the other SQL macros.
- Using Macro Security for Confluence, more general users can be authorized to use this macro since the administrator controls what queries can be accessed.
- When not using Macro Security for Confluence, the administrator can disable the sql and sql-query macros and still allow the sql-file macro since it has a fixed set of queries that can be run.
- Simplified file access — the modified parameter makes it easier to specify and read SQL from files.
Usage Parameters
Parameter | Required | Default | Macro Browser Label | Description |
---|---|---|---|---|
Data source (may be restricted) | Data Source Name | Specify the data source name. It represents an application server defined data source or data source profile defined by your administrator. | ||
file | File | File path in the configured Confluence server home directory under the script directory. | ||
Output | Output format | Determines how the output is formatted:
|
For more information on common SQL parameters, refer to Working with SQL parameters - 9.x.
Examples
Explore SQL parameters
The SQL-file macro has dozens of built-in parameters that you can explore and apply.
Log a request with our support team.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.