Skip to main content
Version: 1.15.0

Connect GX Cloud to Microsoft SQL Server

To connect GX Cloud to data stored in Microsoft SQL Server, you can use the GX Cloud UI or the GX Cloud API.

Prerequisites

Connect to a Microsoft SQL Server Data Source and add a Data Asset

  1. In GX Cloud, select the relevant Workspace and then click Data Assets > New Data Asset > New Data Source > Microsoft SQL Server.

  2. Enter a meaningful name for the Data Source in the Data Source name field.

  3. Supply your connection details.

    • Host: Enter the environment where the Microsoft SQL Server engine is installed and running, for example sql-server.example.com for a self-hosted Microsoft SQL Server instance.
    • Database: Enter the name of the Microsoft SQL Server database where the data you want to validate is stored.
    • Schema: Enter the name of the Microsoft SQL Server schema where the data you want to validate is stored.
    • Port: Enter the port configured for your Microsoft SQL Server instance, typically 1433.
    • Encrypt: Select a TLS encryption protocol:
      • Optional: Establish an encrypted connection if your Microsoft SQL Server instance is configured to force encryption. Otherwise, establish an unencrypted connection.
      • Mandatory: Require the connection to be encrypted. Validate the server certificate unless Trust server certificate is checked. Connection will fail if your Microsoft SQL Server instance does not support TLS. If Trust server certificate is not checked, connection will fail if the certificate is not valid and publicly trusted.
      • Strict: Use TDS 8.0 where encryption begins before the TLS handshake. Require the connection to be encrypted and validate the server certificate. Connection will fail if your Microsoft SQL Server instance does not support TLS or the certificate is not valid and publicly trusted.
    • Trust server certificate: If you set Encrypt to Mandatory, you can select Trust server certificate to enable using an encrypted connection without a valid publicly trusted server certificate. This lets you, for example, use a self-signed certificate with an encrypted connection.
    • Driver: If you are using an agent-enabled deployment of GX Cloud, enter the name of the ODBC driver your environment uses to connect to Microsoft SQL Server. Common values include the following:
      • ODBC Driver 18 for SQL Server
      • ODBC Driver 17 for SQL Server
      • FreeTDS
    • Authentication method: Select SQL Server or Entra ID Service Principal. Depending on your selection, the following credential fields will be required:
      • SQL Server:
        • Username: Enter the username you use to access Microsoft SQL Server.
        • Password: Enter the password you use to access Microsoft SQL Server.
      • Entra ID Service Principal:
        • Tenant ID: Enter the unique identifier for your organization's instance of Microsoft Entra ID.
        • Client ID: Enter the application ID for your new or existing app registration.
        • Client secret: Enter a new secret key from your app registration.
  4. Click Connect.

  5. Select one or more tables or views to import as Data Assets.

  6. Click Add x Asset(s).

  7. Decide which Anomaly Detection options you want to enable. By default, GX Cloud adds warning-severity Expectations to detect Schema and Volume anomalies. You can de-select recommendations you’d like to opt out of. You can choose to generate Expectations to detect Completeness anomalies.

  8. Click Start monitoring or Finish.

Next steps