Skip to main content

Microsoft SQL Server Connector

Connect to Microsoft SQL Server for natural language queries.

Overview

The MS SQL connector supports:

  • SQL Server 2016+
  • Azure SQL Database
  • Windows and SQL authentication
  • Schema discovery

Prerequisites

  • SQL Server instance
  • User credentials
  • Network connectivity

Authentication

SQL Authentication

Username and password for SQL Server.

Windows Authentication

Use Windows/domain credentials (requires configuration).

Configuration

SettingDescription
HostServer hostname
PortServer port (1433)
DatabaseDatabase name
UsernameSQL login
PasswordLogin password
EncryptEnable encryption
Trust CertTrust server certificate

Setup Steps

  1. Add Connector: Knowledge → Add Data Source → MS SQL Server
  2. Enter Connection: Host, port, database
  3. Provide Credentials: Username and password
  4. Configure Encryption: If required
  5. Test & Create: Verify and save

Best Practices

  1. Use SQL authentication for simplicity
  2. Enable encryption for security
  3. Create dedicated read-only login
  4. Filter schemas if many exist

Troubleshooting

Connection failed: Check firewall and port

Login failed: Verify credentials and permissions

Certificate error: Configure trust settings