2025-10-21 · 3 min
Resource Governor: Limit CPU, Not People
Not every process deserves 100% of the CPU. Not every user should have an unrestricted highway to the cores. Resource Governor guards the balance by setting boundaries before chaos takes over.
SQL Server can be almost too accommodating. When a client application starts grinding through reports with spaghetti-like JOINs, the server may devote substantial resources to it while other users get stuck in traffic. Resource Governor says: enough.
2025-10-15 · 2 min
Both commands remove data. But one uses surgical precision, while the other brings a broom. DELETE and TRUNCATE can appear similar — both can leave a table empty. Under the hood, however, SQL Server performs very different operations.
DELETE — the surgeon with a magnifying glass
DELETE operates row by row. Each deleted row is logged in the transaction log, allowing the operation to be rolled back with ROLLBACK.
That provides precision: you can use WHERE, DELETE triggers fire, and foreign-key relationships are respected. But there is a price: log usage increases, and deleting many rows can be expensive.
2025-10-14 · 3 min
When you type a SELECT and press Execute, something remarkable begins — but not in the order you might expect.
SQL Server is not a naive interpreter of your code. It is a query-logic compiler that sees the world differently. Before the query can execute, the T-SQL text is parsed, rewritten, normalized, and optimized. The result is not simply “running the code,” but a query plan: a precise set of instructions for the relational engine to retrieve data as efficiently as possible.