Articles

Technical Article

The Power of Generate_series

SQL 2022 introduced the function generate_series which permits us to solve problems for which we previously had to use a table of numbers (also known as a "tally table"). generate_series is a great addition, because when using a table of numbers there was always a risk that you could run out of numbers. Or some joker could have deleted rows from the table. All these worries are gone with generate_series.

You rated this post out of 5. Change rating

2025-03-05

SQLServerCentral Article

Determining Whether Home Addresses Fall Within a Tornado Polygon Using Spatial Functions

Geographic information systems (GIS) play a critical role in emergency response planning and risk assessment. One of the key challenges in this field is determining whether a specific location falls within an area of interest. This capability is especially valuable for property and casualty (P&C) insurers, who need to assess their insured property exposure when severe weather events such as tornadoes occur.

You rated this post out of 5. Change rating

2025-03-04 (first published: )

955 reads

Technical Article

Improve Query Performance when SQL Server Ignores Nonclustered Index

Do you wonder why SQL Server ignores an index? Do you think about how you can deal with this problem? When you include too many columns in a query you decrease index selectivity. So, if you write a query like “Select * From …” the chance of choosing your nonclustered index will decrease.

You rated this post out of 5. Change rating

2025-03-03

Blogs

Deploy at Low Priority

By

Learn how to deploy schema changes in an always-online SQL Server environment without a...

A Couple Quick GENERATE_SERIES Tests

By

I had someone reach out about generate_series() recently, saying they hadn’t realized this was...

How I passed the DP-700 Exam

By

I recently took and passed the DP-700 exam, which is required for the Microsoft...

Read the latest Blogs

Forums

Dynamic T-SQL Script Parameterization Using Python

By omu

Comments posted to this topic are about the item Dynamic T-SQL Script Parameterization Using...

Fildena 100 mg: Elevate Your Energy, Elevate Your Life

By Daisymill

When energy and confidence matter most, Fildena 100 mg and Fildena 200 are here...

How to Download and Restore AdventureWorks 2019 Database

By Noman072

Comments posted to this topic are about the item How to Download and Restore...

Visit the forum

Question of the Day

Counting Bits IV

What does this code return in SQL Server 2022+?

select bit_count(2.4)
 

See possible answers