T-SQL Programming Edward Pollack in T-SQL Programming Exporting and Importing Data into SQL Server Using Files There are plenty of applications and tools available that allow for the movement of data in and out of SQL... 23 October 2023 23 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming Don’t use DISTINCT as a “join-fixer” I’ve quietly resolved performance issues by re-writing slow queries to avoid DISTINCT. Often, the DISTINCT is there only to serve... 16 October 2023 6 min read
Ben Johnston in Blogs SQL Server Security Primer SQL Server security structure, mechanisms and methods are very thoroughly documented in the Microsoft documentation, but it is quite daunting... 15 October 2023 37 min read
Performance Aaron Bertrand in Performance Normalize strings to optimize space and searches While this article is specifically geared to SQL Server, the concepts apply to any relational database platform. The Stack Exchange... 02 October 2023 9 min read
T-SQL Programming Itzik Ben-Gan in T-SQL Programming T-SQL Fundamentals: Controlling Duplicates When people start learning a new field, for example T-SQL, it’s tempting to spend very little time trying to understand... 28 September 2023 20 min read
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
Blogs Louis Davidson in Blogs 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
Blogs Ben Johnston in Blogs SQL Server Row Level Security Deep Dive. Part 1 – Introduction and Use Cases My initial goal of documenting and exploring SQL Server Row Level Security (RLS) was to show the basic functionality and... 01 August 2023 17 min read
Database Administration Edward Pollack in Database Administration Running Queries Across Many SQL Server Databases A challenge that reappears periodically in the world of databases (especially database management) is the need to run code on... 31 July 2023 14 min read
T-SQL Programming Greg Larsen in T-SQL Programming Using a Subquery in a SELECT statement Did you know you can include a SELECT statement within another SELECT statement? When a SELECT statement is embedded within... 26 June 2023 15 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 Challenge A student of mine sent me a T-SQL challenge involving gap-filling of missing dates and balances. I found the challenge... 29 May 2023 19 min read
Blogs Ben Johnston in Blogs Unmasking SQL Server Dynamic Data Masking – Part 1 – Introduction This is the beginning of a series on SQL Server Dynamic Data Masking. Dynamic Data Masking is a concept familiar... 26 May 2023 12 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 One of the more challenging technical details of columnstore indexes that regularly gets attention is the need for data to... 07 April 2023 17 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming GENERATE_SERIES: My new go-to to build sets I have come across a lot of use cases for manufacturing rows on the fly, aside from the common goal... 30 March 2023 12 min read
BI Dennes Torres in BI Using Virtual Network Data Gateways to Secure Access to Azure SQL in Power BI Power BI and Azure are two related services, but with a considerable independence between them. Power BI share the Azure... 27 March 2023 11 min read