/
/
JDBC

Cosmos DB JDBC Driver

Easily connect live Cosmos DB data with Java-based BI, ETL, reporting, AI/ML & custom apps.

Other Microsoft Azure Technologies
Decorative Icon Cosmos DB Logo
Claude
Claude
GitHub Copilot
Gemini
New
CData Drivers now work with AI Coding tools

The Cosmos DB JDBC Driver enables users to connect with live Cosmos DB data, directly from any applications that support JDBC connectivity. Rapidly create and deploy powerful Java applications that integrate with Cosmos DB.

JDBC architecture

Cosmos DB JDBC Connectivity Features

  • Access any Azure CosmosDB instance setup using the MongoDB API
  • Enables SQL-92 capabilities on Azure Cosmos DB NoSQL data.
  • Flexible NoSQL flattening - automatic schema generation, flexible querying etc.
  • Connect to live Azure Cosmos DB data, for real-time data access with the Azure Cosmos DB JDBC Driver
  • Full support for data aggregation and complex JOINs in SQL queries
  • Secure connectivity through modern cryptography, including TLS 1.2, SHA-256, ECC, etc.
  • Seamless integration with leading BI, reporting, and ETL tools and with custom applications via the Cosmos DB Connector.

Target Service, API

The driver connects to Azure Cosmos DB via SQL API. Supports partitioned collections and multi-region deployments.

Schema, Data Model

Models Cosmos DB containers as tables with automatic schema detection. Handles nested documents and arrays with flattening options.

Key Objects

Databases, Containers (Collections), Documents, Stored Procedures, Triggers, and User-Defined Functions. Access to all Cosmos DB data.

Operations

SQL queries translated to Cosmos DB SQL. Full CRUD operations with support for partial updates. Handles partition keys automatically.

Authentication

Azure AD authentication or Master Key/Resource Tokens. Connection requires account endpoint and authentication credentials.

Start a 30-day free trial today

JDBC access to Azure Cosmos DB

Full-featured and consistent SQL access to any supported data source through JDBC


See what you can do with Cosmos DB JDBC Driver

ETL, Data Warehouse
Data integration & ETL

Integrate Cosmos DB into your systems and data warehouses through popular Java-based ETL/EAI tools. Supports both self-hosted environments and cloud service deployment.

BI, Reporting, Virtualization
BI, reporting & data virtualization

Connect to Cosmos DB from any JDBC-compatible BI, reporting, and data virtualization platform. Provides seamless integration using SQL as the standard query interface across all tools.

Custom Java Applications
Custom Java applications

Use the Cosmos DB JDBC Driver to rapidly deliver Java-based applications that connect with Cosmos DB. Universal SQL-based interactivity simplifies integration and speeds time to market.

Connect to Cosmos DB—empower every team

Management & Data Consumer
IT Department
ISVs & cloud service vendors

AI-assisted development with CData CLI

Build Cosmos DB integrations faster with AI that understands your schema

Schema-aware AI

CData CLI gives AI coding tools access to your Cosmos DB schema. No more guessing table names or column types—AI sees the same metadata in your JDBC Drivers.

Your AI knows SQL

How to find table names, column names, and how to generate SQL syntax are things that AI knows well from millions of training data. No need for customization, no hallucinations. Your AI acts like a domain specialist to Cosmos DB.

More accurate, more token-efficient

With CData CLI's queryable schema detection and highly efficient queries with filters, aggregation, joins with correct pushdown, your AI will achieve more accuracy with less token usage.

Supported AI Coding Tools
Download CData CLI
FAQs

Frequently asked Cosmos DB JDBC driver questions

Learn more about Cosmos DB JDBC drivers for data and analytics integration

Ready to get started? Try CData for free today