--- title: "SQL Client | SQL Client Lab | N3uron KB V1.22" slug: "sql-client-lab" description: "SQL Client is a N3uron module designed to allow users to quickly and easily connect to the following SQL databases: Microsoft SQL Server, Oracle MySQL…" updated: 2026-11-19T23:31:47Z published: 2026-11-19T23:31:47Z canonical: "docs.n3uron.com/sql-client-lab" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.n3uron.com/llms.txt > Use this file to discover all available pages before exploring further. # SQL Client Lab **SQL Client Lab** is a read-only database inspection tool that uses the saved channels of an SQL Client module instance. Use it to check a connection, find tables and views, inspect their columns, and preview rows before configuring a transaction. From **N3uron version 1.22.8**, the tool appears as **SqlClient Lab** below the SQL Client instance in the Explorer panel. Lab reads the real database selected by the channel. Its operations do not insert, update or delete database rows, and they do not write values to **N3uron** Tags. Previewed values appear in the Result panel. They are not transferred to the Tag model. The tool does not provide an SQL editor. Its **Run** button executes the selected inspection operation. The **Run** icon on a transaction's Pipeline header opens a separate script test window. See [**User-defined scripts**](https://docs.n3uron.com/docs/sql-client-user-defined-scripts) for the script stages. ## Open SQL Client Lab 1. Configure and save a database channel in your SQL Client instance. See [**Configuration**](https://docs.n3uron.com/docs/sql-client-configuration) for the connection settings. 2. In WebUI, open **System > Config**. 3. In the Explorer panel, expand **Modules** and the SQL Client module instance. 4. Select **SqlClient Lab**. 5. Select the saved **Channel** that you want to inspect. The examples below use a running instance named **SQL Client** and its saved channel **WindFarmSCADA**. The selected channel supplies the database connection and credentials. You do not enter a password in SQL Client Lab. ![SQL Client Lab selected below the SQL Client instance, with the WindFarmSCADA channel and preview controls](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/lab-overview.png) ## Lab controls Fields appear according to the selected operation. Set the visible fields, then press **Run**. After changing a field, press **Run** again to refresh the result. | **Control** | **Description** | | --- | --- | | Channel | Selects a channel from the saved configuration of this SQL Client instance. Use the instance that owns the required database connection. | | Operation | Selects **Test connection**, **List schemas and tables**, **Describe table** or **Preview rows**. The initial operation is **Test connection**. | | Schema | Selects the database schema, a named group of tables and views. The field appears for listing, describing and previewing. Leave it empty to use the default schema. The PostgreSQL examples use **public**. | | Table | Names the table or view to inspect. This field is required for **Describe table** and **Preview rows**. In the example, enter **turbine_telemetry** and set Schema to **public**. | | Limit | Sets the maximum number of rows returned by **Preview rows**. Enter an integer from **1 to 500**. The initial value is **50**. This field does not appear for the other operations. | | Run | Executes the selected operation with the current Lab inputs. Lab initially shows **Not run yet** and waits for this action. This button does not save a transaction or apply the previewed values to Tags. | ## Example: inspect wind-farm telemetry The following example uses a PostgreSQL database for a wind farm. The database contains a view named **turbine_telemetry**, with one row for each of three wind turbines. A view presents query results as rows and columns. | **Example item** | **Value** | | --- | --- | | Module instance | SQL Client | | Channel | WindFarmSCADA | | Database | wind_farm_scada | | Schema | public | | Table field | turbine_telemetry, a database view | | Database user | scada_sql_client | Distinguish the database name from the schema name and the table or view name. In this example, **wind_farm_scada** is the database, **public** is the schema, and **turbine_telemetry** is the view. Use the corresponding names from your own database. ### **Check the connection** 1. Select **WindFarmSCADA** in Channel. 2. Select **Test connection** in Operation. 3. Press **Run** and read the status below the button. In this example, **Connection OK** and **Online** confirm a successful connection. The Result panel reports latency in milliseconds, the database product and version, the database user, server time, time zone and database. Read any warning alongside the successful status. ![Successful connection check for the wind_farm_scada PostgreSQL database and scada_sql_client user](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/lab-test-connection.png) > [!NOTE] > Note: > > If the result reports **SSL is disabled**, review the channel's SSL configuration. That warning means that credentials and data travel without encryption. The example uses an isolated local database. A successful connection check does not confirm permission to read every table or view. Test the required table or view with **Preview rows**. ### **Find tables and views** 1. Select **List schemas and tables**. 2. Enter **public** in Schema, or leave Schema empty to use the default. 3. Press **Run**. The Result panel lists the tables and views in the selected schema. In this example, it shows the **turbine_assets** table, the **turbine_telemetry** view, and two tables for turbine history. The log also lists the available schemas and identifies **public** as the default. | **Result field** | **Meaning** | | --- | --- | | Schema | Schema that contains the table or view. | | Type | Shows whether the listed name refers to a table or view. | | Rows (estimate) | Estimated number of rows reported for the table or view. This is not an exact count. A blank estimate does not mean that there are no rows. | | Name | Name to use when selecting the table or view for the next operation. | ### **Describe a table or view** 1. Select **Describe table**. 2. Set Schema to **public**. 3. Set Table to **turbine_telemetry**. 4. Press **Run**. The example returns four columns: **turbine_id**, **active_power_kw**, **wind_speed_ms** and **observed_at**. Use this information to choose columns and data types when preparing a transaction. | **Result field** | **Meaning** | | --- | --- | | Column | Column name in the inspected table or view. | | Native type | Column type reported by the database, such as **double precision** in this PostgreSQL example. | | Dataset type | Type used by SQL Client for the returned data, such as **DOUBLE**. A Dataset is a table of data used by SQL Client. | | Nullable | Shows whether the database reports that the column can contain **NULL**, which represents a missing value. | | Primary key | Indicates whether the column belongs to the reported primary key. A primary key uniquely identifies each row in a table. | | Auto increment | Indicates whether the database reports automatic increment for the column. | | Default | Default value or expression reported for the column. A blank cell means that no default is reported. | The animation shows how to list the tables and views in **public** and inspect the columns of **turbine_telemetry**. ![Selecting the schema, listing wind-farm tables and views, and describing the turbine_telemetry view](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/lab-explore-structure.webp) ### **Preview row values** 1. Select **Preview rows**. 2. Set Schema to **public** and Table to **turbine_telemetry**. 3. Set Limit to **2**, then press **Run**. 4. Read the two returned rows. The message **more rows follow** indicates that the preview does not contain all available rows. 5. Change Limit to **50**, then press **Run** again. The second run returns all three rows in this example. The values include active power in kW, wind speed in m/s, and the observation timestamp. The Limit value caps the returned rows. It does not change the data in the database. There is no next-page control in this preview. If the result reports more rows, increase Limit within its range and run the operation again. Use a transaction query when you need a specific filter, order or larger result. ![Previewing two turbine telemetry rows, then increasing Limit to 50 and displaying the three available rows](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/lab-preview-rows.webp) ## Read the result and operation log The status below **Run** reports success, the returned row or column count, or an error. The Result panel displays the response for the operation. The log below it shows **Timestamp**, **Level** and **Message**. The following table summarizes messages obtained while using the example database. Read the complete message before changing the connection or the database permissions. | **Message summary** | **Action** | | --- | --- | | Table is required for this operation | Enter a table or view name before running **Describe table** or **Preview rows**. | | Table does not exist or is not visible to the connection's user | Check the selected channel, Schema and Table. Also check whether the database user can see the table or view. This message alone does not identify which condition failed. | | DB_ERROR: permission denied for table turbine_assets | Ask the database administrator to review read access to that table. In the captured case, the database user could read **turbine_telemetry** but could not read the underlying **turbine_assets** table directly. | The image below shows the actual permission error obtained before read access to the base table was granted. The connection check succeeded, and describing the table was possible. Reading its rows still required permission on that table. ![SQL Client Lab reports permission denied when the database user previews the turbine_assets base table](https://cdn.document360.io/54093ab5-6b22-4542-a265-04377931f11a/Images/Documentation/lab-permission-error.png) Use Lab to inspect the connection and data. To read database values into **N3uron** Tags, configure a Standard transaction and its Parser. To store Tag events in the database, configure a History transaction. These configured transactions are separate from the Lab inspection operations.