Only SELECT, SHOW, EXPLAIN, WITH, SP_HELP queries allowed
Single statement
Multiple statements per query rejected
TLS support
Configurable encryption for secure connections
Query timeout
30-second timeout enforced via pymssql
Connection timeout
10-second login timeout
Memory protection
Max 10,000 rows per query to prevent OOM
Column width cap
100 char max per column for readable output
Credential sanitization
Error messages don't leak passwords
Troubleshooting
Error
Solution
Config not found
Create
connections.json
in skill directory
Authentication failed
Check username/password in config
Connection timeout
Verify host/port, check firewall/VPN
TDS version error
Try
"tds_version": "7.3"
or
"7.4"
Encryption error
Set
"encrypt": true
for Azure SQL
Permission warning
Run
chmod 600 connections.json
Exit Codes
0
Success
1
Error (config missing, auth failed, invalid query, database error)
Workflow
Run
--list
to show available databases
Match user intent to database description
Run
--tables
or
--schema
to explore structure
Execute query with appropriate
--limit
(auto-converts to TOP N)