It’s the Process
Unless you’ve spent the last two days hiding under a rock, you’ve heard the uproar around this week’s development in...
2010-08-19
791 reads
Unless you’ve spent the last two days hiding under a rock, you’ve heard the uproar around this week’s development in...
2010-08-19
791 reads
Yesterday PASS published the list of candidates on the ballot for the 2010 Board of Directors election. Much to my...
2010-08-19
614 reads
I recently gave a couple of talks at devLINK 2010 at the David Lipscomb University campus in Nashville.
One of the...
2010-08-19
1,900 reads
In the last blog post I have talked about unique/non-unique clustered indexes on a heap
table. A table without a clustered...
2010-08-19
8,224 reads
Well , that was an experience.
It was my first time arranging anything like that and it seemed to me that...
2010-08-19
688 reads
Some great SQL Lunch sessions are coming up. Some from Pragmatic folks and some from other great speakers and community...
2010-08-19
374 reads
This week it's all about speed. Many thing in life are drive n by how fast we can get them...
2010-08-19
369 reads
Hey there gang ! – It’s been a while since I’ve written on here and I apologize. It’s shameful I know. I...
2010-08-19
370 reads
This is long overdue and goes out to my buddies from the SSAS Class I taught late last year. Two...
2010-08-19
398 reads
One of the most common questions I get from folks during out quickstart engagements is around a new service in...
2010-08-19
472 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