sqldw-consumption-cli

Execute read-only T-SQL queries against Microsoft Fabric SQL endpoints from the command line.

3|6|Updated Jun 21, 2024
One-click install
npx skills add https://github.com/rritec/Microsoft-Fabric --skill sqldw-consumption-cli-rritec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqldw-consumption-cli
Source: https://github.com/rritec/Microsoft-Fabric/tree/main/skills/plugins/fabric-skills/skills/sqldw-consumption-cli
Command: npx skills add https://github.com/rritec/Microsoft-Fabric --skill sqldw-consumption-cli-rritec

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of connecting to Fabric SQL endpoints and writing safe read-only queries for fast data exploration, schema discovery, and operational monitoring.

Core Features & Use Cases

  • Run T-SQL against Fabric Data Warehouse, Lakehouse SQL Endpoints, and Mirrored Databases from the CLI.
  • Discover workspaces, endpoints, schemas, tables, columns, and permissions using repeatable discovery workflows.
  • Export query results and inspect performance with sqlcmd formatting flags, query labels, and monitoring queries.
  • Ideal for analysts and engineers who need counts, previews, filters, aggregation, and reusable scripts without opening a GUI.

Quick Start

Use the sqldw-consumption-cli skill to connect to the correct Fabric database endpoint and run a read-only T-SQL query for the table you want to inspect.

Frequently Asked Questions about sqldw-consumption-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query a Microsoft Fabric Data Warehouse from the command line?

This Skill executes read-only T-SQL queries against Microsoft Fabric SQL endpoints from the command line using sqlcmd. It requires az login for Entra ID authentication and explicit database selection to return schema discovery or row counts.

Can I run T-SQL queries against Fabric Lakehouse SQL endpoints without a GUI?

Yes, you can run read-only T-SQL queries against Lakehouse SQL endpoints without a GUI. The Skill uses sqlcmd and Entra ID authentication to perform schema discovery, row counts, and result exports directly from the CLI.

What do I need to connect to Fabric SQL endpoints using sqlcmd?

To connect to Fabric SQL endpoints using sqlcmd, you need the sqlcmd utility, an active az login session for Entra ID authentication, and explicit database selection. This setup allows you to execute read-only T-SQL queries and export results.

Does the Fabric SQL consumption CLI support write operations or data modification?

No, the Fabric SQL consumption CLI does not support write operations or data modification. It strictly executes read-only T-SQL queries using Fabric-supported syntax, making it safe for schema discovery, row counts, and performance checks.

What is the best way to discover schemas and table row counts in Fabric Mirrored Databases?

The best way to discover schemas and table row counts in Fabric Mirrored Databases is to use this Skill's repeatable discovery workflows. It executes targeted read-only T-SQL queries via the CLI to inspect columns, permissions, and row counts.