Database Administration Adrien Muhlemann in Database Administration Analyze and Tune SQL Server Statistics Over the years, SQL Server Statistics have been discussed in countless blog posts, articles, and presentations, and I believe that... 22 September 2023 34 min read
T-SQL Programming Drupal Grupal in T-SQL Programming Alternatives To SQL Server 2022 Built-in function GREATEST If you haven’t already heard, SQL Server 2022 introduced a new built-in system function called GREATEST. Simply put, it is... 18 September 2023 14 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 SQL Server Row-Level Security: Setup, access predicates, and examples (complete guide, part two) Set up SQL Server Row Level Security with access predicates (inline TVFs) and security policies. Part 2 covers three setup... 03 September 2023 16 min read
Other Louis Davidson in Other Yet Another Reason to Not Use sp_ in SQL Server Object Names In 2012, Aaron Bertrand said most everything I knew (and a bit more) about the issues with using the sp_... 25 August 2023 6 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Working around schema drift in SQL Server At Stack Overflow, our environment has multiple implementations of a largely – but not 100% – identical schema. (By “schema,”... 14 August 2023 10 min read
SQL Server Ben Johnston in SQL Server A practical introduction to Row-Level Security in SQL Server (complete guide, part one) A practical introduction to Row-Level Security in SQL Server: how the predicate function and security policy work, testing, performance, hierarchies,... 01 August 2023 16 min read
Database Administration Edward Pollack in Database Administration Run T-SQL Across Multiple SQL Server Databases: A Reusable Solution Run T-SQL across multiple SQL Server databases reliably - without sp_MSforeachdb. Build a reusable solution with database filters, object presence... 31 July 2023 15 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
SQL Server Ben Johnston in SQL Server Unmasking SQL Server Dynamic Data Masking, Part 4, Unmasking Formatted and Unformatted Text Continuing from the previous entry in this series on security concerns with using Dynamic Data Masking, in this article I... 27 June 2023 30 min read
T-SQL Programming Greg Larsen in T-SQL Programming SQL Subquery in SELECT: Examples & Syntax Guide Learn to embed subqueries inside a SELECT statement in SQL Server. Covers scalar subqueries, correlated subqueries, derived tables, and how... 26 June 2023 15 min read
SQL Server Ben Johnston in SQL Server SQL Server DDM Security Risks: Side Channel Attacks and Partial Unmasking SQL Server Dynamic Data Masking can be bypassed: learn how side channel attacks use range queries to infer masked values,... 14 June 2023 31 min read
SQL Server Ben Johnston in SQL Server SQL Server Dynamic Data Masking Setup Guide Set up SQL Server Dynamic Data Masking step by step. Covers ALTER TABLE masking syntax, mask functions (default, email, random,... 07 June 2023 28 min read
Performance Dennes Torres in Performance SQL Server 2022: Capture SQL Anti-Patterns One of the new Extended Event available in SQL Server 2022 is the query_antipattern. This extended event allows to... 01 June 2023 6 min read
T-SQL Programming Itzik Ben-Gan in T-SQL Programming T-SQL Gap-Filling: Filling Missing Dates with LAG, IGNORE NULLS, and Range Matching Three T-SQL approaches for filling gaps in a time series with last-known values (LOCF imputation): TOP-based lookup, IGNORE NULLS (SQL... 29 May 2023 19 min read
SQL Server Ben Johnston in SQL Server SQL Server Dynamic Data Masking: Introduction and Use Cases (Part 1) SQL Server Dynamic Data Masking (DDM) obfuscates column data for unauthorized users without changing the stored data. Part 1 introduces... 26 May 2023 13 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Changing log growth strategy in SQL Server 2022 When I first saw a bullet item stating SQL Server 2022 would support instant file initialization for log file growth,... 15 May 2023 6 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming One use case for NOT using schema prefixes I’ve long been a huge advocate for always referencing objects with a schema prefix in SQL Server.… 20 April 2023 6 min read
T-SQL Programming Edward Pollack in T-SQL Programming Ordered Columnstore Indexes in SQL Server 2022: Usage & Limits Learn how to use the ORDER clause with columnstore indexes in SQL Server 2022. Covers automatic data ordering, rowgroup elimination... 07 April 2023 18 min read