Connection String

The Connection String page allows user to

  • manage the list of connections
  • select individual items from these connections to be visible in Data Model and Reports

Note

For the Reporting Databases:
- The connection string user should have permissions to read schema; to select on all tables, views, store procedures and functions that will be used as data sources; to execute those store procedures and functions.
- The user should also have permissions to create temp tables

Add connection and select visible data sources

In this step user adds a connection and selects data sources to be visible in reports.

Warning

Please use caution when adding stored procedures to the visible data source list. All stored procedures are executed when added to visible (input parameters are set to NULL) to obtain the resulting fields returned. Some stored procedures are created to do things like delete tables, add data to tables, etc. If these are added to the visible data sources, they will be executed in the database.

  1. ../_images/Menu_Connection_String.jpg

    Fig. 48 Connection String Menu

    In browser, log in to Izenda as a user with Connection String permission.

  2. Click Settings, then Data Setup then Connection String in the left menu.

  3. Select the Setting Level: either System or a specific tenant. (Fig. 48)

  4. Click on Add Connection. (Fig. 49)

    ../_images/Connection_Add_Connection.jpg

    Fig. 49 Add Connection

  5. ../_images/Connection_Select_Database_Server_Type.jpg

    Fig. 50 Select Database Server Type

    Select the database server type from the drop-down box. (Fig. 50)

  6. ../_images/Connection_Builder.jpg

    Fig. 51 Connection Builder tool

    Click the Connection Builder icon (⚡) to help build the connection string easily. (Fig. 51)

    This step can be bypassed when user already knows the connection string. In this case, it can be copied and pasted straight into the Connection String box. For examples of connection strings, please see the Connection String Examples section below.

  7. Click the Test button to verify the connection string.

    Note

    • Unless the Connection String has been verified successfully, user will not be able to move next.
  8. ../_images/Connection_Connection_String_Test.jpg

    Fig. 52 Test the Connection and give it a name

    The connection name will be automatically populated from the database name. User can edit to give it a more suitable name. (Fig. 52)

  9. ../_images/Connection_Connect.jpg

    Fig. 53 Connect to the Connection

    Click the Connect button to show the list of available data sources. (Fig. 53)

  10. ../_images/Connection_Expand_Available_Data_Sources.jpg

    Fig. 54 Expand to see the data sources

    Expand the listed user schemas and object types to see the data sources. (Fig. 54)

    ../_images/Connection_Available_Data_Sources_Filter.jpg

    Fig. 55 Filter the data sources

    The data sources can be quickly filtered by typing a partial name in the Search box. (Fig. 55)

  11. ../_images/Connection_Move_Data_Source_to_Visible_List.jpg

    Fig. 56 Move data sources between the two lists

    Click on the data sources to move them between the two lists. (Fig. 56)

    ../_images/Connection_Move_a_Group_of_Data_Sources.jpg

    Fig. 57 Move a group of data sources

    User can quickly move all data sources in a group (Table, View, Stored Procedure or Function) by clicking on that group name. (Fig. 57)

  12. Click Save button at the top to save the connection and the visible data sources.

Connection Permissions

Izenda needs permissions to view the database schema and read from selected tables and views.

If using stored procedures as data source, Izenda needs execute permission on these stored procedures as well as create table and delete table permissions.

Note

The create table permission will be used to create temporary tables to store the output of stored procedures, for joining to other data sources. And the delete table permission will be used to clean up these temporary tables afterwards.

Delete connection

  1. ../_images/Connection_Delete.jpg

    Fig. 58 Delete Connection

    Click the delete icon (x) on the right of a connection to delete it. (Fig. 58)

  2. ../_images/Connection_Delete_Confirmation.jpg

    Fig. 59 Confirmation pop-up

    Click OK in the confirmation pop-up. (Fig. 59)

Make a connection hidden

All data sources from a connection can be hidden quickly by making that connection hidden.

  1. ../_images/Connection_Make_Hidden_All.jpg

    Fig. 60 Hide a connection

    Click the visibility icon on the right of that connection. (Fig. 60)

  2. ../_images/Connection_Make_Hidden_All_Confirmation.jpg

    Fig. 61 Confirmation pop-up

    Click OK in the confirmation pop-up. (Fig. 61)

    ../_images/Connection_Hidden.jpg

    Fig. 62 Hidden versus visible connections

    All data sources from this connection is hidden from Data Model and Reports. The right pane is disabled and the connection’s visibility icon is changed to a hidden one. (Fig. 62)

../_images/Connection_Make_Visible_All_Confirmation.jpg

Fig. 63 Make a connection visible

To restore the visibility of the data sources:

  1. Click the “hidden visibility” icon on the right of that connection.

  2. Click OK in the confirmation pop-up. (Fig. 63)

    The visibility of all data sources from this connection is restored back to the time before being hidden. The right pane is enabled and the connection’s visibility icon is changed back to normal.

    Warning

    The description in the confirmation pop-up has not been updated.

Refresh the list of available data sources

When there is a remote change in a connection, it will not be automatically reflected in Izenda. The Reconnect button needs to be manually clicked on to detect that.

  1. Click on the connection.

  2. Click the Reconnect button.

    ../_images/Connection_Reconnect_button.jpg

    Fig. 64 Reconnect the connection

  3. The remote changes in the data sources will be marked as either New data source or Changed data source.

    The Data Setup, Connection String and Data Model menu items will also be marked with Changed data source icon (!). (Fig. 65)

    ../_images/Connection_Changed_2Data_Sources.PNG

    Fig. 65 New and Changed data sources

  4. Go to Data Model page to resolve the changes.

Filter the connection list

../_images/Connection_Filter_box.jpg

Fig. 66 Filter the connection list

The connection list can be quickly filtered by typing a partial connection name in the Search box. (Fig. 66)

Cancel the changes

To cancel any changes without saving:

../_images/Cancel_Confirmation.jpg

Fig. 67 Cancel confirmation pop-up

  1. Click the Cancel button at the top.
  2. Click OK in the confirmation pop-up. (Fig. 67)

Connection String Examples

  • Oracle:
    • Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.45.37)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));User Id=user;Password=password;
    • Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.45.37)(PORT=1521))(CONNECT_DATA=(SID=xe)));User Id=user;Password=password;
  • Microsoft SQL Server:
    • Server=192.168.45.37,1433;Database=testdatabase;User ID=user;Password=password
    • Server=HOST-PC;Database=testdatabase;User ID=user;Password=password
  • MySQL:
    • Server=MY-PC;Port=3306;Database=testdatabase;User ID=user;Password=password
  • PostgreSQL:
    • Server=mydomainname;Port=5432;Database=testdatabase;User ID=user;Password=password
    • Server=mydomainname;Port=5432;Database=testdatabase;User ID=user;Password=password;SslMode=Require;Trust Server Certificate=true;

    Note

    • If using Izenda v3.0.0 or greater and a PostgreSQL connection string with “SslMode=Require”, the “Trust Server Certificate=true;” parameter will also need to be added.
  • Elasticsearch:
    • server=https://xxxxxxxx.us-east-1.aws.found.io;Port=9243;User=user;Password=password;
  • MongoDB:
    • Server=localhost;Port=27017;Database=admin;User=user;Password=password;
    • User=user;Password=password;Server=atlas-host1;Port=27017;Database=testdatabase;AuthDatabase=admin;AuthMechanism=SCRAM-SHA-1;ReplicaSet=cluster0-shard-00-01-u49p2.mongodb.net:27017,cluster0-shard-00-02-u49p2.mongodb.net:27017;UseSSL=true;SlaveOK=true;