SQL Server Clustered & NonClustered Indexes Explained
When using row level indexes there are two types Clustered and NonClustered both of which are there to make data...
2017-05-16
101 reads
When using row level indexes there are two types Clustered and NonClustered both of which are there to make data...
2017-05-16
101 reads
So you are a SQL Server DBA, and you are responsible for a database, which gives you a hard time....
2017-05-16
579 reads
I have had several Query Store questions come in from customers lately. Some of the questions stemmed from things read...
2017-05-16
98 reads
I have had several Query Store questions come in from customers lately. Some of the questions stemmed from things read...
2017-05-16
385 reads
Part of a series looking back at Build 2017, going over the 20+ pages of notes I took.
Last week I...
2017-05-15
676 reads
Not the batch separator, but the GO language.
I’m always interested in learning new things, and GO has been one of...
2017-05-15
1,124 reads
If you are attending this year’s SQL Saturday in Atlanta, GA, on July 15, I urge you to attend my preconference training session...
2017-05-15
382 reads
TL;DR: It’s pretty pointless and can cause performance issues.
Let’s start by asking why you might want to shrink your log....
2017-05-15
487 reads
After using Microsoft SQL Server for over 10 years going back to MySQL feels weird BUT with Azure it is...
2017-05-15
398 reads
After the latest cyber attack I’ve had a fun weekend making sure all my devices are fully up-to-date with the...
2017-05-15
384 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
Comments posted to this topic are about the item Split Large Queries in Athena...
Comments posted to this topic are about the item Finding Trailing Spaces
I have some data in a SQL Server 2025 database. It looks like this for the dbo.Customer table:
CustomerID CustomerName PreferredName 1 Steve Steve 2 Andy Andy 3 Brian Brian 4 Allan Allan 5 Devin Devin 6 Steve Steve 7 Sally SallyI want to detect which names have a single trailing space. The CustomerName is a varchar() and the PreferredName is a CHAR(). Does this query detect the problem rows?
SELECT
CustomerID,
CustomerName,
PreferredName
FROM Customer
WHERE CustomerName <> RTRIM(CustomerName)
OR PreferredName <> RTRIM(PreferredName); See possible answers