The building of the capacity tables is used if you want to look at capacities using a third party tool that can run SQL. (You do NOT need to use this command if you are using DMS graphs and reports.)
The purpose of the build capacity tables command is to expand the capacity arrays into tables so that a third party tool can be used to access views and generate capacity reports. The building of the capacity tables does not impact any other area of DMS; only the scheduler would be affected where if the option is selected, the capacity tables would be built automatically after the schedule run.
The option to automatically build capacity tables is on the Options tab of the Scheduler. Checking the “Build capacity tables for third party application” will create tables of monthly loads for reporting purposes automatically after a schedule run. The horizon would be from the first day of the scheduler to the end of the schedule horizon selected by the user.
You can also build capacity tables after a schedule run by selecting the command File | Build Capacity Tables. If you will be using third party tools to always look at capacity, it is recommended that you set the option “Build capacity tables for third party application” on the Options tab so that after each schedule run the capacity tables are built automatically for you. If you use the command File | Build Capacity Tables, the timeframe setup on the Options tab (i.e. daily or monthly) is used for the build.
DMS builds the following tables when Build Capacity Tables is selected:
Operation Load Detail
Capacity Load Detail
Two new views are created that take the above tables and add pertinent information for reporting purposes:
View Operation Load Detail
View Capacity Load Detail
The following is an example SQL script to display access information in the two views by joining the views together by the Resource ID:
select *
from VWCapacityLoadDetail
left outer join VWOperationLoadDetail on VWCapacityLoadDetail.ResourceID=VWOperationLoadDetail.ResourceID
order by VWCapacityLoadDetail.ResourceName, VWCapacityLoadDetail.DayDate