# Creating Link to the Database

How to create a link to from the archive database to the ToolsNet database and connect them.

Installation is applicable to SQL Server.

The Archive Installer has guiding text for each field.

1. In the Archive Installer dialog box, go to the Create Link tab and enter the fields as stated below.

2. DatabaseInstaller path - The path is by default set to C:\ProgramData\Atlas Copco\ToolsNetDatabase\ToolsNetDatabase scripts\AtlasCopco.DatabaseInstaller.exe.

3. ToolsNet database instance - Enter an IP address or archive database server of where the archive information is to be stored.

4. ToolsNet database name - Enter the ToolsNet database name. For normal installation use AtlasCopco_ToolsNet_Database

5. User Name - Enter the name of the user to be used for the archive database.

6. Password - Enter the password used for the archive database installation.

7. Applicable to installations up to ToolsNet 8.18.

   Linked Server Name - Two options are available for this field.

   - If the Archive database instance has the same IP address or archive database server as ToolsNet database instance, then the entry field will be disabled and the message No link will be created will be displayed.

   - If the Archive database instance has a different IP address or archive database server as ToolsNet database instance, then it is possible to enter the linked server name in the field.

8. Archive database instance - Enter the archive target database source, it should be the IP address or archive database server where it is stored.

9. Archive database name - Enter the archive database name.

10. Applicable to installations up to ToolsNet 8.18.

    Linked Server provider - The field will have the default entry SQLNCLI11.

11. Start date - Select the start date, for when the archive will run from.

12. End date - Select the end date, for when the archive will run to.

13. Select Create link to configure the link between the source and the target.

14. - If the installation has been successful a dialog box will be displayed. Select OK .

    - If the installation has been unsuccessful, an installation error dialog box will be displayed. Select OK and go back and check the entered fields.