Summary
The SQL Server Desktop Engine (MSDE) database engine available for use with adTempus has a database size limit of 2 GB. Once the database exceeds this limit, MSDE will not mount the database, rendering it inaccessible to adTempus and all other access methods.
More Information
Although unlikely, it is possible for your adTempus database to reach this size limitation, particularly if you use the default settings for job history retention (30 days of history per job) for jobs that run very often (e.g., every minute or every few minutes).
Symptoms
When the size limit is reached, MSDE and adTempus will continue to function normally until the MSDE service is restarted. When this happens, MSDE will refuse to mount the adTempus database, which will cause adTempus to fail when it tries to connect to the database.
The adTempus service will fail to start with a generic error message. The diagnostic log produced by adTempus will contain a line similar to the following:
Error -2147467259: Cannot open database requested in login 'adTempus_COMPUTERNAME'. Login fails. (source=Microsoft OLE DB Provider for SQL Server; native error=4060; SQL state=42000)
The SQL Server error log (found in the ERRORLOG file in the MSSQL$ADTEMPUS\logs directory) will contain the following line:
CREATE/ALTER DATABASE failed because the resulting cumulative database size would exceed your licensed limit of 2048 MB per database.
Avoidance
If you are using adTempus version 2.0.2 or earlier, you should take steps to avoid this problem. For later versions, no action on your part is generally necessary.
Version 2.0.2 or Earlier
For jobs that run frequently, change the History Retention settings for the job to use a reasonable setting (e.g., retain the most recent 100 instances).
Beginning With Version 2.0.2 Hotfix 1
If you have adTempus 2.0.2 Hotfix 1 (adtempussrv.exe version 2.0.2.1275) or later, adTempus automatically limits history retention to a maximum of 2,016 instances per job, which generally will be sufficient to avoid the problem. If you have a very large number of jobs running very frequently, you should adjust the retention settings as described in the previous section.
Beginning With Version 2.0.4
Beginning with version 2.0.4, adTempus checks the database usage at regular intervals. If the size exceeds 1.5 GB, adTempus automatically purges all but the 10 most recent instances for all jobs to reduce the database size.
Recovery
Once the size limit is reached, there is no way to connect to the database to purge unneeded data and reduce the database size. There are two ways to recover your data:
- Replace the database with a backup taken before the size limit was reached. This approach will result in the loss of any changes made since the backup.
- Mount the database file using a full SQL Server installation (which does not have the size limitation) and use SQL tools to remove history data to reduce the database size. Then remount the database file in MSDE.
Please contact us for assistance with either of these methods.