Follow

How do you move or copy LonWorks Network Services (LNS) databases (global DB plus network DBs) from one PC to another? (KB151)

Question Detail
How do you move or copy LonWorks Network Services (LNS) databases (global DB plus network DBs) from PC "A" to PC "B"? Is a physical 'copy' possible or do you need to make changes in the registry, as well?
Solution
There are a few ways to do this.

Option 1: First, move the global database. You can either move it to the default location (\lonworks\objectserver\globaldb\) or you can move it to a different location of your choice. If you move it to a different location, you need to change the DatabasePath property of the OCX. This will change the location of the global database in the registry. Next, the network databases will need to be moved. You must copy them to the same locations on the new PC (including same drive).

Option 2: Don't move the global database. Instead, copy the networks you want to move to the new PC. It doesn't matter what directory you put them in. Next, using the LcaNetwork.Add() method, specify the network to be imported. Specify the directory path where you have placed the network. IMPORT is enabled by setting the 3rd parameter of the Add() to FALSE (don't create database).

Option two is the preferred method for most situations.
Related Products
  • LNS 3.0
  • LNS Turbo Edition (Ver 3.2)
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk