SQL Reporting Module
Overview
The WorkflowGen SQL reporting module uses SQL views to gather important information about your users, requests, and actions, allowing you to create custom data reports.
Technical requirements
WorkflowGen version 7.12.0 or later
SQL Server 2014 or later
Installation
Setup files
The SQL reporting module setup files are located in the \Databases\MsSQLServer\Reporting folder in the manual WorkflowGen installation pack:
VIEW_PUB_DIR_V100.sql
VIEW_PUB_DIR_USERS_V100.sql
VIEW_PUB_DIR_GROUPS_V100.sql
VIEW_PUB_DIR_USERS_GROUPS_V100.sql
VIEW_PUB_REQ_DATA_V100.sql
VIEW_PUB_REQ_DATA_V100T.sql
VIEW_PUB_REQ_FILE_V100.sql
VIEW_PUB_REQ_FILE_V100T.sql
VIEW_PUB_REQ_COMMENT_V100T.sql
VIEW_PUB_REQ_ACTION_V100.sql
VIEW_PUB_REQ_ACTION_V100T.sql
VIEW_PUB_REQ_ACTION_DATA_V100.sql
VIEW_PUB_REQ_ACTION_DATA_V100T.sql
VIEW_PUB_REQ_ACTION_FILE_V100.sql
VIEW_PUB_REQ_ACTION_FILE_V100T.sql
CreateReportingDatabase.sqlInstalling the SQL views
To install the SQL views:
Open SQL Server Management Studio (SSMS) or Azure Data Studio.
Connect to your WorkflowGen database (e.g.
WFGEN).Run each of the
VIEW_PUB_*.sqlfiles to create the SQL views.
SQL reporting database and replication (optional)
For better performance without overloading the main WorkflowGen database, you can create a dedicated SQL reporting database and replicate the SQL views data to their specific tables.
This requires the SQL Server replication service and SSMS. The SQL views must be created as described in the Installing the SQL views section above.
Setup procedure overview
In SSMS, run
CreateReportingDatabase.sqlto create the SQL reporting database on another SQL Server database instance.Set up your WorkflowGen database as a
Publisherand aDistributorto publish all the SQL views (e.g.VIEW_PUB_*).Set up the dedicated SQL reporting database as a
Subscriberto retrieve the data from thePublisherin real-time data replication. For each of the SQL views, configure the respective table to receive the data from the view. For example:The
DIR_V100table gets data from theVIEW_PUB_DIR_V100viewThe
REQ_FILE_V100table gets data from theVIEW_PUB_REQ_FILE_V100view
The dedicated SQL reporting database should now be ready to use for custom data reports.
Last updated