mssql-expert

Optimize SQL Server queries, schemas, and data types for performance.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/deepanshu0504/DB-Sanitization --skill mssql-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mssql-expert
Source: https://github.com/deepanshu0504/DB-Sanitization/tree/main/.github/skills/mssql-expert
Command: npx skills add https://github.com/deepanshu0504/DB-Sanitization --skill mssql-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SQL Server optimization and design guidance to improve performance, reliability, and maintainability of databases and queries.

Core Features & Use Cases

  • Query optimization, plan analysis, and performance tuning for complex workloads.
  • Data type recommendations and schema design strategies to reduce waste and improve execution plans.
  • Indexing strategies (clustered, non-clustered, includes, filtered) to accelerate common queries.
  • Storage and maintenance best practices, stored procedures, and error handling for robust deployments.

Quick Start

Provide a sample slow query and schema context to receive targeted optimization recommendations.

Frequently Asked Questions about mssql-expert

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

FAQPage Schema
How do I optimize slow SQL Server queries in complex enterprise schemas?

To optimize slow SQL Server queries, provide the problematic query and schema context to receive targeted execution plan analysis, parameterization, and query optimization recommendations for complex workloads.

What is the best indexing strategy for accelerating common T-SQL queries?

The best indexing strategy for T-SQL queries involves selecting clustered, non-clustered, included, and filtered indexes to accelerate common queries while reducing execution plan waste across your schema.

How does schema design and data type selection affect SQL Server performance?

Schema design and data type selection affect SQL Server performance by reducing storage waste and directly improving execution plans, which yields reproducible performance improvements across complex workloads.

Can I use this for safe deployment of stored procedures and error handling?

Yes, you can use this for safe deployment of stored procedures by applying robust design, error handling, and parameterization best practices to ensure reliable and maintainable database code.

When should I not use filtered indexes for query optimization?

You should avoid filtered indexes for query optimization when your common queries do not align with the filter criteria, which limits their effectiveness and creates execution plan inefficiencies.