Validating network databases, Lns database validation tool, Validating network – Echelon LNS User Manual

Page 266

Advertising
background image

LNS Programmer's Guide

252

MyNetwork.Backup(“C:\MyBackupDBs\” & MyNetwork.Name)

You can use this method to backup a network database at any time, including while the

network is open and clients are attached to it. However, if a remote Full client
application accesses the

Networks

collection while the database is being backed up, that

network will not appear in the Networks collection. In addition, if a remote Full client

application attempts to open a network while it is being backed-up, the operation may

fail, whereas Local and Lightweight client applications will simply wait for the backup to

complete in this case. LNS calls made by client applications already connected to the
database when a backup is initiated may not return until the backup is complete, and

requests to modify the database will be suspended until the backup is complete.

Echelon recommends that you use this method to backup the network database before
validating a network database with the Validate() method described in the next

section. You can then archive the backed-up database after it is validated.

Validating Network Databases

As described in Chapter 2, What’s New In Turbo Edition, LNS Turbo Edition features the

ability to perform database validations. There are two ways to perform a database

validation: to use the LNS Database Validation Tool, or to use the

Validate()

method

of the Network object.

LNS Database Validation Tool

You can use the LNS Database Validation Tool to validate any of the network databases

on a given PC. The tool will process the contents of the selected network database, and

report any errors or inconsistencies it discovers while doing so. It can optionally repair
some of these errors as part of the validation process. Inconsistencies and errors that

may be discovered during the database validation procedure include orphan objects
(objects that cannot be accessed through their parent object), broken interfaces, and

duplicate objects. You can access the LNS Database Validation Tool by selecting LNS

Database Validator from the Echelon LNS Utilities group in the Windows Programs
menu. Figure 10.1 shows the LNS Database Validation Tool.

Advertising