Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Create a Database Connection

  • Last UpdatedJun 04, 2025
  • 4 minute read

You can create a new database connection to connect to either a repository datasource or an external datasource.

To create a Database Connection for a repository datasource

  1. Log on to the Enterprise Console.

  2. In the Enterprise Console, click menu icon, click Settings, and then click Database Connections.

    The Connection List page appears.

  3. Click New.

    The New Connection dialog box appears.

  4. In the Title box, type the name of the database connection.

  5. In the Description box, type any additional details for the database connection.

  6. Select the Connect to repository datasource check box to connect to the current repository database. A database connection for the repository datasource is successfully created and is displayed in Connection List page.

    Note: The repository database password does not support special characters & ; =.

To create a Database Connection to external datasource

  1. Log on to the Enterprise Console.

  2. In the Enterprise Console, click menu icon, click Settings, and then click Database Connections.

    The Connection List page appears.

  3. Click New.

    The New Connection dialog box appears.

  4. In the Title box, type the name of the database connection.

  5. In the Description box, type any additional details for the database connection.

  6. Clear the Connect to repository datasource check box to connect to an external database.

    Note: The repository database password does not support special characters & ; =.

  7. Perform the steps mentioned in the following tables.

    Field

    Description

    Database type

    Select SQL Server or Oracle.

    If the database type is Oracle, ensure to install Oracle Client on your machine.

    Connection type

    Select either Connection string or Connection provider.

    If Connection type is Connection string

    Field

    Description

    Server name

    Perform one of the following:

    • Enter the name of the datasource server.

    • Click the Refresh icon to get a list of the available datasource servers and then select the required server.

      If the database type is Oracle, ensure that you enter the Oracle Service name, which is used to connect to the Oracle database server.

    Authentication type

    Provide information on the process used to validate a user. Both Windows, and Microsoft SQL Server authentication process is supported.

    • For Microsoft SQL Server, the authentication type can be either Microsoft SQL Server or Windows.

    User Id

    Enter the Microsoft SQL Server user ID for Microsoft SQL Server type of authentication. For Windows Authentication, User Id is disabled.

    Password

    Enter the Microsoft SQL Server password for Microsoft SQL Server type of authentication. For Windows Authentication, Password is disabled.

    Advanced settings

    (Optional). You can enter any additional connection information, such as connection timeout. For example, Connection Timeout = 20

    While creating a data source for a repository, use the following custom settings to set properties for connection pool:

    encrypt=true; enableltm=true; connectionretrywaittime=30; maxconnectionretries=10; sqlcommandtimeout=300;

    where,

    • encrypt:Ensures secure communication between AVEVA Work Tasks Server and SQL Server when a certificate is installed on the SQL Server for SSL encryption.

    • enableltm: Internally light weight transaction mode is implemented by reusing the connection which is already open within the same transaction. With this implementation, a connection which is used from a transaction is returned back to connection pool only when the transaction is completed. Since the same connection is used within the transaction, the transaction distribution is reduced to a great extent. With this feature the transaction is controlled from being escalated to a distributed transaction which is very expensive.

      The above property can be used to turn off this feature. The default value is set as True.

    • connectionretrywaittime: While opening a new connection, if the database server is not available, the default behavior is to retry the connection. This setting can be used to set the wait time to retry for a new connection. The default value is set as 30 Seconds. The value should be set in seconds.

    • maxconnectionretries: While opening a new connection, if the data base server is not available, the default behavior is set to retry for a new connection. This setting can be used to set the retry count. The default value is set infinite.

    • sqlcommandtimeout: Sets the wait time before terminating the attempt to execute an SQL command and generating an error. The default value is set as 300.

      Note: These settings are case sensitive and should be mentioned only in lower case.

    Database

    Perform one of the following:

    • Enter the name of the database.

    • Click the Refresh icon to get a list of the available databases and then select the required database.

    If Connection Type is Connection Provider

    Field

    Description

    Assembly path

    Enter the path of the connection dll.

    In a client-server environment, the dll must be present on the machine that hosts the Enterprise Console site. All requests of install and uninstall are sent to the host site.

     

    TitleResults for “How to create a CRG?”Also Available in