> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-database-import-utility/troubleshooting/cannot-connect.md).

# The utility can't connect to the DATRAN database

The Database Import Utility's connection test fails. Check the server name, database, SQL login and its permissions.

If the connection is not successful then you will be prompted with the reason for the failure and are then required to make appropriate changes and try again. Before using the application, a connection to a DATRAN SQL database must be made.

{% hint style="info" %}
**Applies to:** Database Import Utility V1.x.
{% endhint %}

## Check

1. **The server name.** The computer name or IP Address of where the SQL Database resides. If you are using SQL Express then the above may need to be postfixed with `\SQLExpress`. If the database is exposed on a specific IP Port then this needs to be specified after a comma.
2. **The database name.** This is the name of the DATRAN database. By default DATRAN installs this as DatranDatabase.
3. **The login.** A valid user account configured within your SQL database. Currently Windows Authentication is not supported.
4. **The login's permissions.** Ensure that the login has permission to access and write to the database. The user account must have rights to add records to the database.

Check that the server name, database and login credentials are correct by testing the connection in the database configuration: select **Database connection** from the **Configuration** menu and press the **Test** button. When a successful connection has been made the **Save** button will become enabled. Pressing this will store the settings for future sessions.

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with the utility's version, the message the test shows, and the SQL Server version.
