Running the Server

The server is run as a Windows service and here we show you how to start this service. Once the service is running you don't have to start it again. It will be restarted automatically whenever the computer is restarted or if the NewViews service itself crashes.

  1. Select Start>All Programs>NewViews 2.0>Windows Service Installer from the Windows start menu.

    Instead of left-clicking on the menu item as you would normally do, you have to right-click and then select the Run as administrator item. This is because administrator access is required to install a Windows service. The dialog window shown above then appears.

  2. Click the <Install> button.

    The service will be installed and started. When the Server Database field is empty, c:/nv/server.nv2 is used by default, where c:/nv is assumed to be the NewViews folder. If the server database doesn't already exist it will be automatically created after you are prompted to confirm. Click <Ok> if prompted to confirm.

You should now have a NewViews server running as a Windows Service. You will not have any visual indication that it is running, but you can check it using the task manager or the Windows Service Manager. You still need to know how to manage and monitor the NewViews server, and how to use it to open accounting databases.

Stopping and Uninstalling the Server

The NewViews Window service installer can also be used the uninstall the NewViews server. Just click the <Uninstall> button. You can just as easily re-install and restart the server by again clicking the <Install> button.

Note that if you do uninstall the server, workstations connected to any database through the server will report a lost connection.

But why stop the server? There is no reason that we can think of right now other than to perform various tests or the satisfy your curiosity.

Description of the NewViews Windows Service Installer fields.

The NewViews Windows Service Installer dialog window is shown above and the fields are described below.

Accessing the Server.

Because the server is running as a Windows service it doesn't have a direct user interface. Instead, open the server using a workstation:

  1. Open a NewViews workstation.

    The workstation could be on the same computer as the server but normally it will be on a different computer.

  2. Add a row to the workstation login table and fill it in.

    In the Server field enter the server computer URL or IP. In the File field enter the keyword "server". Instead of a path identifying an accounting database, the special keyword "server" results in opening a window interface on the server itself.

  3. Double-click on the new workstation login row to open the server.

    A screen displaying server information should appear. It is actually a window interface on the server database and it is used to manage and monitor the server.

    Note that NewViews is inherently multi-user and you can open the server any number of times from different workstations.

Offering Databases

Now that the server is open the next step is to provide a list of databases that the server will offer to users. Add a row for each database you want to offer, and type in a full path to the database. The database should be on the server computer so the path you enter is the path to the database on the server, not the workstation. Currently <F3> cannot be used to select a database, so you have to type in the path to the database manually.

Note that among the accounting databases there is a row with the special value "server", indicating that users have access to the server database. This "server" row was added automatically when the server database was created. Note that you should set a password to restrict access to the server.

Opening a remote accounting database.

  1. Open a NewViews workstation.

    You may already have a workstation open so just go back to its table of logins.

  2. Add a row to workstation login table.

  3. In the Server field enter the URL or IP of the server.

  4. In the File field press <F3>.

    The list of databases offered by the server will pop up.

  5. Select a database from the list.

  6. Double-click on the new login row to open the application database.

    You may need to enter a password to open the database.

Using a workstation to open an application database through a remote server is very similar to opening a local database. Each uses a login table row to specify the database. The main differences are that for a remote database you have to specify the Server field and instead of picking a file from a file explorer, you can only pick from the databases offered by the server.

As you can see from the list at the top of this page, there are many more topics related to multi-user NewViews and remote server access. Most can be skipped unless you need them. For example, you don't need to know how to set server port numbers or specify other field values in the server installer unless you want to run multiple servers on the same computer.

Using the commandline

The Windows Service Installer dialog is used above to configure, install, and uninstall the NewViews Windows Service. That dialog is always used to configure the service by specifying the executable, server database, and so on. In addition, the service can be installed and uninstalled using a command line window (sometimes known as a terminal). You can install the NewViews Server from the command line as shown below:

c:\nv>nv2.exe -script system/service/windows_service_installer -command install >wsi.lst
            

And unstall it from the command line as shown below:

c:\nv>nv2.exe -script system/service/windows_service_installer -command uninstall >wsi.lst
            

Short forms are also available for convenience:

c:\nv>nv2.exe -script wsi -command install >wsi.lst
c:\nv>nv2.exe -script wsi -command uninstall >wsi.lst
            

When using the command line, the server executable and server database and other values are taken from the values last set in the installer dialog.


Copyright (c) 2003-2025 Q.W.Page Associates Inc., All Rights Reserved.