sqlserver-query-optimization

Installation
SKILL.md

SQL Server Query Optimization

Use this skill when you have a specific stored procedure, view, or T-SQL batch that needs to be rewritten or improved. This is about fixing the code — for hardware/index problems, start with sqlserver-diagnostics and sqlserver-indexes.


Stored Procedure Anti-Patterns

1. DELETE + INSERT Per Request (Most Common)

Problem: A stored procedure deletes and re-inserts the same row every time it runs, even when nothing changed.

Installs
2
First Seen
Jun 29, 2026
sqlserver-query-optimization — vince-winkintel/sql-server-skills