Applies to:
All versions of PcVue supporting the HDS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Summary:
How to estimate the size requirements for an SQL Server database when used with PcVue and the HDS to record Trend and/or Log data. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Details:
This article provides a method of estimating the SQL Server database size when using PcVue and the HDS to record Trend and / or Log data.Why only an estimate? Some of the properties that are recorded by PcVue are mandatory, others are optional. For information about all the available properties, the data type for each property and the maximum size see the main help: The Application Explorer.Archives.Configuring databases.Configuring the database tables.What properties can you record Trend Table The Trend table has three elements that use storage. Each record requires an entry in each of these three elements. Therefore 1 record requires storage for 2 x mandatory properties + optional properties + chrono. The mandatory properties for the Trend Table are:
Example 1
Example 2
Log Table Estimating the space required by a Log Table is more difficult. The Log Table has two elements that use storage. Each record requires an entry in each of these two elements. The mandatory properties for the Log Table are:
The non-optional properties for the Log Table are:
As many of the properties are of Varchar type and of variable size, it will be much more difficult to estimate the space required for each record. Also, events by their nature, are spontaneously recorded as they occour. So you also need some idea of the frequency. At best you can probably only calculate a best guess or a worst case scenario. About the Transaction Log File (.ldf) The Transaction Log File (.ldf) is used to record transactions that have taken place on a database. Its purpose is to allow a database to be recovered to a certain point in time, but to do this you also need the data so you can imagine it might not be that useful in the case of PcVue. The .ldf file can grow very large if it is not managed. The .ldf file has two recovery models known as Full and Simple. The Simple model is recomended for PcVue as it uses much less storage space. From PcVue 11.2 onwards the Simple model is forced whenever PcVue creates a database. Prior to 11.2 the recovery model used was inherited from the SQL Server Model Database which itself depends on the SQL Server instalation. For more information see the MicroSoft technical article: https://technet.microsoft.com/en-us/library/ms175987(v=sql.105).aspx |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Created on: 13 Oct 2016 Last update: 13 May 2024