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
T-SQL Programming Aaron Bertrand in T-SQL Programming GENERATE_SERIES in SQL Server 2022: Syntax, Examples, and Performance vs Numbers Tables GENERATE_SERIES is the new built-in function in SQL Server 2022 and Azure SQL Database for producing a set of values... 30 March 2023 13 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
T-SQL Programming Greg Larsen in T-SQL Programming Paging Data in T-SQL Sometimes when working with very large sets of data, you may not want to return all of the data at... 20 March 2023 10 min read
T-SQL Programming Louis Davidson in T-SQL Programming Optional Code in T-SQL Scripts using SQLCMD When you are writing T-SQL scripts to save away, for example one to create a new database, there are often... 06 March 2023 6 min read
T-SQL Programming Aaron Bertrand in T-SQL Programming 40 Common Stored Procedure Problems in SQL Server Review 40 real stored procedure problems in SQL Server: naming conventions, error handling, NOCOUNT, temp table usage, sargability, schema binding,... 23 February 2023 22 min read
Learn SQL Server Greg Larsen in Learn SQL Server Using TOP clause in a SELECT statement There might be a time when you might want to return just a few rows of a result set, instead... 06 February 2023 11 min read
Learn SQL Server Greg Larsen in Learn SQL Server Manage Data Over Time with SQL Server MERGE Statement Once data is in a table it needs to be maintained. New records will need to be added, and existing... 17 January 2023 13 min read
Blogs Louis Davidson in Blogs Dealing with the Bits of a Binary Value in SQL Server In this article, I want to talk about a topic that you may never need. The only time I have... 04 December 2022 5 min read
T-SQL Programming Edward Pollack in T-SQL Programming SQL Server Time Zones: AT TIME ZONE, SWITCHOFFSET, DATETIMEOFFSET, and Daylight Saving Complete primer on SQL Server time zone conversion - the components of a time zone (bias, daylight saving rules), how... 21 November 2022 28 min read
Learn SQL Server Greg Larsen in Learn SQL Server The Basics of Deleting Data from a SQL Server Table Over time data in SQL Server tables needs to be modified. There are two major different aspects of modifying data:... 07 November 2022 12 min read
Learn SQL Server Greg Larsen in Learn SQL Server The Basics of Updating Data in a SQL Server Table Once data is inserted into a table, it typically needs to be maintained as time goes on. To make changes... 21 October 2022 14 min read
Learn SQL Server Greg Larsen in Learn SQL Server The Basics of Inserting Data into a SQL Server Table Before data can be read from of a SQL Server database table, the table needs to contain rows of data.... 04 October 2022 15 min read
Blogs Louis Davidson in Blogs Generating Repeatable Sets Of Test Rows In order to test graph structures, I needed a large set of random data. In some ways, this data will... 30 September 2022 11 min read
T-SQL Programming Greg Larsen in T-SQL Programming Summarizing data in SQL Server using GROUP BY and HAVING clauses You can summarize data to get counts, averages, sums, and more using GROUP BY in T-SQL queries. Greg Larsen shows... 27 May 2022 11 min read
BI Dennes Torres in BI Datamarts and exploratory analysis using Power BI During Build 2022, Microsoft announced a new feature, Datamarts for Power BI. MVP Dennes Torres explains this new feature and... 25 May 2022 24 min read