Blog

Discover our latest posts

T-SQL: Cursors vs. WHILE Loops – When to Use Which?
June 09, 2026 | SQL
In the world of T-SQL (Microsoft SQL Server), the unwritten law is:  "Think in sets, not in rows."  However, there are scenarios where row-...
SQL Plan Advice: Now with a Share Feature
May 29, 2026 | SQL
SQL Plan Advice: Now with a Share Feature We’ve all been there: You’re stuck with a slow SQL query, have the execution plan in front o...
Asynchronous email delivery via Service Broker
May 24, 2026 | SQL
Classic scenario: you have a stored procedure that does something (creates an order, registers a user, whatever) and at the end an email needs to go ...
MSSQL Performance Skript
May 24, 2026 | SQL
  A short script to test the performance of an SQL Server.    /* =========================================================...
Enterprise SQL Server Index Maintenance: Multi-Database Automation with Email Reporting
June 21, 2025 | SQL
Modern database environments require sophisticated maintenance strategies that can handle multiple databases efficiently while providing comprehensiv...
SQL Logging
February 23, 2025 | SQL
A comprehensive logging solution for SQL Server stored procedures that provides structured logging with different severity levels, automatic calle...
MSSQL Script: Move all LOG files in a DB
February 16, 2025 | SQL
-- First, create a temporary table to store the file move operations CREATE TABLE #LogFileChanges ( DatabaseName sysname, LogicalFi...
Rename MSSQL schema
February 11, 2025 | SQL
Unfortunately, this is not so easy. But there is a way. First create the new schema: create schema {newschema}; go N...