Requirements
To follow the steps in this guide, you’ll need:- Organization Admin permissions in Omni
- Microsoft Azure Portal Admin permissions, which are required to allowlist Omni’s IP addresses
Setup
1
Retrieve connection details
- Navigate to your Microsoft Azure Portal.
- In the portal, navigate to the database you want to connect to Omni.
-
On the database’s details page, locate the Connection strings field:

- Click the Show database connection strings link.
-
On the page that displays, click the JDBC tab:

-
You should see something like the following, which will contain all the information you need:
2
Set up a table upload schema
This step is optional. However, we recommend completing it as part of the initial set up or you won’t be able to use CSV uploads in joins.
- Create the schema in Microsoft SQL Server. This can be in its own database or the same database as other schemas to be used in modeling.
-
Run the following commands to grant the Omni user the required privileges:
Grand Omni user permissions to upload schema
3
Allowlist Omni's IP addresses
If access to the SQL Server database is limited by IP address, you’ll need to add Omni’s IPs to the allowlist before you create the database connection.Omni’s IP addresses can be found on an individual connection’s page, accessed by navigating to Settings > Connections and clicking a connection.
- Navigate to your Microsoft Azure Portal.
- In the left navigation, click the Networking option under Security.
-
In the Firewall rules section, click Add a firewall rule:

-
Create a rule for each of Omni’s IP addresses:

4
Create the connection in Omni
- In Omni, click Settings > Connections.
- Click the Microsoft SQL Server option.
-
On the connection setup page, fill in the connection details:
Name Required? Description Display Name Yes A user-friendly name for the connection, which will be used throughout Omni Host Yes The hostname or IP address of the database server Port Yes The port number for the database connection. Defaults to 1433.Database Yes The database to connect to Include Schemas No A comma-separated list of schemas to include in the connection Offloaded Schemas No A comma-separated list of schemas to include in the connection, which will only load on demand. This setting is good for very large schemas or dbt dev schemas. Schema for Table Uploads No The name of the schema to use for table (CSV) uploads. If left blank, you can upload tables but they won’t be pushed to the database or be available for use in joins. Default Schema Yes The default schema to use for queries. Defaults to dbo.Username Yes The username for database authentication Password Yes The password for database authentication Trust Server Certificate No Whether to trust the server’s SSL/TLS certificate without validation Database Timezone Yes The timezone used by the database Query Timezone Yes The timezone to use for queries Allow User-Specific Timezones No Allow users to override the connection timezone with their own Query Timeout No Maximum time in seconds before a query times out - When finished, click Create connection.
What’s next?
Now that your SQL Server is set up, you can:- Configure user permissions, schema refreshes, environments and timezone settings
- Learn how Omni generates the model associated with the connection