Use Claude to Talk to Your SQL Server Data via CData Connect AI
Claude is a family of advanced large language models (LLMs) built by Anthropic, an AI research company founded in 2021. These models power the Claude conversational assistant and developer tools.
CData Connect AI offers a dedicated cloud-to-cloud interface for connecting to SQL Server data. The CData Connect AI Remote MCP Server enables secure communication between Claude and SQL Server. This allows you to ask questions and take actions on your SQL Server data using Claude, all without the need for data replication to a natively supported database. With its inherent optimized data processing capabilities, CData Connect AI efficiently channels all supported SQL operations, including filters and JOINs, directly to SQL Server. This leverages server-side processing to swiftly deliver the requested SQL Server data.
Step 1: Configure SQL Server Connectivity for Claude
Connectivity to SQL Server from Claude is made possible through CData Connect AI Remote MCP. To interact with SQL Server data from Claude, we start by creating and configuring a SQL Server connection in CData Connect AI.
- Log into Connect AI, click Sources, and then click Add Connection
- Select "SQL Server" from the Add Connection panel
-
Enter the necessary authentication properties to connect to SQL Server.
Connecting to Microsoft SQL Server
Connect to Microsoft SQL Server using the following properties:
- Server: The name of the server running SQL Server.
- User: The username provided for authentication with SQL Server.
- Password: The password associated with the authenticating user.
- Database: The name of the SQL Server database.
Connecting to Azure SQL Server and Azure Data Warehouse
You can authenticate to Azure SQL Server or Azure Data Warehouse by setting the following connection properties:
- Server: The server running Azure. You can find this by logging into the Azure portal and navigating to "SQL databases" (or "SQL data warehouses") -> "Select your database" -> "Overview" -> "Server name."
- User: The name of the user authenticating to Azure.
- Password: The password associated with the authenticating user.
- Database: The name of the database, as seen in the Azure portal on the SQL databases (or SQL warehouses) page.
SSH Connectivity for SQL Server
You can use SSH (Secure Shell) to authenticate with SQL Server, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
SSH Connections to SQL Server in Password Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Password"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHPassword: SSH Password
SSH Connections to SQL Server in Public Key Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Public_Key"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHClientCret: the path for the public key certificate file
- Click Save & Test
Step 2: Connect Claude to CData Connect AI
Follow these steps to add a CData Connect AI connector in Claude:
- Sign in to Claude.ai or create a new account.
- Expand the left navigation menu.
- In the bottom-left corner, click your user name and select Settings from the menu. The Settings screen appears.
- In the Settings screen, click Connectors.
- Click the button to Browse Connectors.
- Search for "CData Connect AI" and click the listing.
- Click "Connect" and sign into your Connect AI account.
- After connecting, Claude opens a new chat.
Step 3: Explore Live SQL Server Data with Claude
- You can now start exploring your data with natural language prompts. Claude outlines the steps it uses to retrieve data from the source in CData Connect AI. Refer to CData's prompt library for prompt ideas.
NOTE: Claude's setup process is subject to change. Refer to Claude's documentation for the latest setup information.
Get CData Connect AI
To get live data access to 300+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!