# Sqlcmd

> Use this skill when the user wants to query Microsoft SQL Server from the command line.

- Skill: `javimosch/sqlcmd` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/sqlcmd`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/sqlcmd/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/sqlcmd

---


# sqlcmd Plugin

Microsoft SQL Server command-line query tool. Query and manage SQL Server, Azure SQL DB, and Azure Synapse.

## Commands

### Basic
- `sqlcmd _ _` — Passthrough to sqlcmd CLI

## Usage Examples
- "Query SQL Server using sqlcmd"
- "Run a SQL script against Azure SQL Database"
- "List all databases on the server"

## Installation

```bash
npm install -g sqlcmd
```

## Key Features
- Run Transact-SQL queries
- Connect to SQL Server, Azure SQL DB, Azure Synapse
- Script execution and output formatting
- Windows, macOS, and Linux support

