Connect to Azure Data Explorer with ODBC
Open Database Connectivity (ODBC) is a widely accepted application programming interface (API) for database access. Use ODBC to connect to Azure Data Explorer from applications that don't have a dedicated connector.
Behind the scenes, applications call functions in the ODBC interface, which are implemented in database-specific modules called drivers. Azure Data Explorer supports a subset of the SQL Server communication protocol (MS-TDS), so it can use the ODBC driver for SQL Server.
Using the following video, you can learn to create an ODBC connection.
Alternatively, you can configure the ODBC data source as detailed below.
In the article, you learn how to use the SQL Server ODBC driver, so you can connect to Azure Data Explorer from any application that supports ODBC.
You need the following:
- Microsoft ODBC Driver for SQL Server version 188.8.131.52 or later for your operating system.
Configure the ODBC data source
Follow these steps to configure an ODBC data source using the ODBC driver for SQL Server.
In Windows, search for ODBC Data Sources, and open the ODBC Data Sources desktop app.
Select ODBC Driver 17 for SQL Server then Finish.
Enter a name and description for the connection and the cluster you want to connect to, then select Next. The cluster URL should be in the form <ClusterName>.<Region>.kusto.windows.net.
Select Active Directory Integrated then Next.
Select the database with the sample data then Next.
On the next screen, leave all options as defaults then select Finish.
Select Test Data Source.
Verify that the test succeeded then select OK. If the test didn't succeed, check the values that you specified in previous steps, and ensure you have sufficient permissions to connect to the cluster.