Use Different Database

 

In this Topic Hide

Modify Application Config File

Modify Service Config File

There are two ways in which the database connection can be modified:

       Change the service that is called from the application config file (Data Service only)

       Change the Database that is called from the service config file

Modify Application Config File

Carry out the following steps:

1.     Open Windows Explorer.

2.     Goto C:\Program Files\Applied Tech Systems\Inspect\Applications\<application name>

3.     Open the configuration file (eg. Cockpit.exe.config) for the application you wish to use with the new database.

4.     Modify the following section:

<dataServices>

<add name="<dataservice identifier>" server="<server name>" bindingType="NetTcp" basePort="<baseport number>"/>

</dataServices>

5.     Save and close the file.

The next time you run the application the dataservice(s) will be listed.

Modify Service Config File

The service configuration file can be modified to change the target database.

1.     Open Windows Explorer.

2.     Goto C:\Program Files\Applied Tech Systems\Inspect\Services

3.     Open the configuration file (eg. WcfDataServiceHost.exe.config) for the service you wish to use with the new database.

4.     Modify the following sections:

<connectionStrings>

<clear/>

<add name="Inspect" providerName="SQLOLEDB" connectionString="Server=<server name>;Database=<database name>;User Id=<user id>;Password=<password>;"/>

</connectionStrings>

<setting name="BasePort" serializeAs="String">

<value>8500</value>

</setting>

5.     Save and close the file.

6.     Restart the service.