PANTHEON's .ini file (by default named Pantheon.ini) specifies to which
database server Pantheon.exe should connect to, and stores a list of avialable
databases on that server. The list is update when you press the Resfresh button
on the Logon screen. Using shortcuts and different .ini files allows you to
connect to different servers with a single Pantheon.exe. See
Command line parameters for specifying which .ini file should be used.
The installation places the default Pantheon.ini in the Windows folder. It is
recommeded that you leave that file intact and alter copies of it.
Layout of the .ini File
[Program]
Uporabnik=AD
ZagonPrograma=11.12.2004
[Database]
Podjetje=Demo d.o.o. (DEMO)
DataBaseName=DEMO
ServerName=GIZMO
DataOnServer000=DEMO; (DEMO)
DataOnServer001=DEMO1; (DEMO1)
The .ini file has two sections: the Program section and the Database section.
Program section
[Program]
|
Section title |
Uporabnik=AD
|
Last user who logged on |
ZagonPrograma=11.12.2004
|
Date and time of last logon |
Database section
[Database]
|
Section title |
Podjetje=Demo d.o.o. (DEMO)
|
Last used database. |
DataBaseName=DEMO
|
Database name on database server |
ServerName=GIZMO
|
Database server name or its IP address |
DataOnServer000=DEMO; (DEMO)
DataOnServer001=DEMO1; (DEMO1)
...
DataOnServerNNN=...
|
List of all databases on the above specified database server. This
list is updated everytime you press the Refresh button on the
Logon screen.
The rationale behind this list is that this way, PANTHEON does not need
to look for available databases everytime it is started. |
Using .ini Files for Connecting to Different Servers
Let us assume we have two database servers with the IP addresses 192.168.0.1
and 192.168.0.2, and you need to be able to connect to different databases on
each of the servers.
First, you need two separate .ini files. They can be placed anywhere, but it
is most convenient to put them in PANTHEON's installation folder.
All you have to do here is to set the ServerName parameter to the
appropriate server name (and instance, if required) or IP address.
Pantheon_1.ini
[Program]
Uporabnik=AD
ZagonPrograma=11.12.2004
[Database]
Podjetje=Demo d.o.o. (DEMO)
DataBaseName=DEMO
ServerName=192.168.0.1
DataOnServer000=DEMO; (DEMO)
Pantheon_2.ini
[Program]
Uporabnik=AD
ZagonPrograma=11.12.2004
[Database]
Podjetje=Demo2 d.o.o. (DEMO2)
DataBaseName=DEMO2
ServerName=192.168.0.2
DataOnServer000=DEMO2; (DEMO2)
Second, you have to create two shortucts to the same Pantheon.exe, but each
pointing to a different .ini file:
"C:\Program Files\DataLab\Pantheon.exe" /INI="C:\Program Files\DataLab\Pantheon_1.ini"
"C:\Program Files\DataLab\Pantheon.exe" /INI="C:\Program Files\DataLab\Pantheon_2.ini"
Now you just have to run the appropriate shortcut.