T-SQL Programming Aaron Bertrand in T-SQL Programming Snake Draft Sorting in SQL Server Part 3: Balancing Work Across Tables Within One Database Part 3 of the snake-draft sorting series - extending the technique from balancing work across databases (parts 1-2) to balancing... 15 May 2024 5 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake draft sorting in SQL Server, part 2 Part of a series: [ Part 1 | Part 2 | Part 3 | Part 4 ] In my previous... 15 April 2024 7 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Snake Draft Sorting in SQL Server: Distributing Workloads Evenly (Part 1) Snake draft sorting in SQL Server divides processing tasks into evenly-distributed groups by assigning work in a serpentine order. Part... 12 April 2024 9 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming SQL Server Pagination Performance: Sorting by Large Text Columns SQL Server OFFSET-FETCH pagination becomes extremely slow when sorting by large text columns (varchar(max), nvarchar(max)). Learn to fix it using... 25 March 2024 9 min read
Database Administration Aaron Bertrand in Database Administration Get the most out of SQL Server Agent logs If you haven’t migrated your workloads to a managed database platform yet, you’re probably still relying on SQL Server Agent... 11 March 2024 6 min read
Ben Johnston in SQL Server Batch Delete in SQL Server: Six Patterns for Large-Scale DELETE Operations Six practical T-SQL patterns for deleting large numbers of rows in SQL Server without locking tables, blocking users, or growing... 01 March 2024 25 min read
T-SQL Programming Edward Pollack in T-SQL Programming Find and Replace Text in Strings in T-SQL String manipulation is an inevitable task for developers and data professionals alike. Despite all the best efforts to normalize databases,... 29 February 2024 17 min read
Database Administration Aaron Bertrand in Database Administration Upgrade SQL Server on your workstation Lately, I’ve seen many people struggling to upgrade their workstation to the latest version of SQL Server. The main source... 26 February 2024 6 min read
PowerShell Laerte Junior in PowerShell Automating BCP with PowerShell I was talking with a good friend that has an environment with terabytes of information and to create a homolog... 09 February 2024 8 min read
Database Administration Edward Pollack in Database Administration The Importance of Retention It is always an afterthought. New objects are created that start off small and current. New feature development takes over... 19 January 2024 24 min read
Ben Johnston in SQL Server 11 proven data warehouse load patterns (complete guide, part two) 11 proven data warehouse load patterns — revised date, modified flag, hash comparison, history tables, and more — with the... 31 December 2023 30 min read
Other Dennes Torres in Other SQL Server: Optimize for Ad Hoc Workloads – use or not use I used to believe this option was something almost absolute: it should be enabled as best practice. I was in... 06 December 2023 5 min read
Ben Johnston in SQL Server Getting started with data warehouse load patterns (complete guide, part one) The requirements, prerequisites, and general patterns behind every solid data warehouse load — from natural keys and refresh rates to... 26 November 2023 28 min read
Ben Johnston in SQL Server SQL Server Security Features: Complete Guide Complete guide to SQL Server security features - TDE, Always Encrypted, Dynamic Data Masking, Row-Level Security, auditing, firewall rules, and... 15 October 2023 39 min read
Ben Johnston in SQL Server How to detect and mitigate Row-Level Security attacks in SQL Server (complete guide, part six) Detect and mitigate attacks against SQL Server Row Level Security (RLS) - side-channel timing attacks, excessive-error patterns, brute force attempts.... 03 October 2023 25 min read
Ben Johnston in SQL Server SQL Server Row-Level Security: Attacks & vulnerabilities (complete guide, part five) Explore SQL Server Row-Level Security vulnerabilities - direct attacks, indirect attacks, and side-channel bypasses. Essential reading before deploying RLS in... 25 September 2023 22 min read
Ben Johnston in SQL Server SQL Server Row-Level Security: Integration, anti-patterns, and alternatives (complete guide, part four) A complete guide to SQL Server Row-Level Security integration, anti-patterns, and alternatives.… 17 September 2023 20 min read
SQL Server Ben Johnston in SQL Server SQL Server Row-Level Security: Performance, tuning, and troubleshooting (complete guide, part three) Tune SQL Server Row Level Security performance: compare authentication methods (SESSION_CONTEXT, roles, AD), optimise access predicate indexing, and troubleshoot ETL... 10 September 2023 25 min read
SQL Server Ben Johnston in SQL Server A practical introduction to Row-Level Security in SQL Server (complete guide, part one) Row-Level Security in SQL Server lets identical queries return different rows per user. Here's how it works, when to use... 01 August 2023 16 min read
SQL Server Ben Johnston in SQL Server Unmasking SQL Server Dynamic Data Masking, Part 5: Mitigations and Summary This is the fifth and final part of this series on SQL Server Dynamic Data Masking. In this article, I’ll... 30 July 2023 12 min read