Tag Archives: T-SQL

Tally Table Alternatives: #SQLNewBlogger

We published an article recently at SQL Server Central on Tally Tables in Fabric from John Miner. In it he showed how this can be efficient. A day after he published it, he sent me an addendum to note that … Continue reading

Posted in Blog | Tagged , | 1 Comment

A Couple Quick GENERATE_SERIES Tests

I had someone reach out about generate_series() recently, saying they hadn’t realized this was a new feature in SQL Server 2022. They were wondering if it was better than using a tally table. I didn’t want to do an exhaustive … Continue reading

Posted in Blog | Tagged , | 2 Comments

What is Deferred Name Resolution?

One interesting concept in SQL Server is Deferred Name Resolution. This is something many developers struggle with understanding how this works and where it works. In the Microsoft docs, there is a specific section in the CREATE TRIGGER docs that … Continue reading

Posted in Blog | Tagged , | Comments Off on What is Deferred Name Resolution?

Declaring a Complex PK in a CREATE TABLE: #SQLNewBlogger

Recently I was talking with someone who had not named any of the primary keys (PKs) in their database. They used system generated names and when they ran comparisons, they got all sorts of drops and creates they didn’t expect. … Continue reading

Posted in Blog | Tagged , , | Comments Off on Declaring a Complex PK in a CREATE TABLE: #SQLNewBlogger