The SQL Server Date Magic: When CAST and CONVERT Keep Your Index Seek
This article shows two scenarios, tested independently, with the full scripts and the real numbers from each run.
2026-10-16
2,304 reads
This article shows two scenarios, tested independently, with the full scripts and the real numbers from each run.
2026-10-16
2,304 reads
2021-09-29
780 reads
Age calculation based on the right method used in real life.
2017-03-28
4,474 reads
2016-10-18
1,241 reads
Recently, in an attempt to thwart leechers (1990s kids will know), I added some...
Once upon a time I had a series about some cool stuff in Snowflake:...
By Steve Jones
“Most overnight successes – in fact any significant successes – take at least 5...
Comments posted to this topic are about the item Why Successful SQL Server Backups...
Comments posted to this topic are about the item Adding Bits II
Comments posted to this topic are about the item An Unlimited Token Budget
I have a table, dbo.bittest, where I am testing an application response. This has this structure:
CREATE TABLE [dbo].[BitTest] ( [insertdate] [datetime] NULL CONSTRAINT [DF__BitTest__insertd__300F11AC] DEFAULT (getdate()), [a] [bit] NULL ) ON [PRIMARY] GOMy application runs this code:
INSERT dbo.BitTest
(
insertdate,
a
)
VALUES
(DEFAULT, true)
GO
See possible answers