Spock Does Final Convention Appearance
I saw this post about Leonard Nimoy doing his final convention appearance this week. He’s 80, I would guess doesn’t...
2011-10-05
562 reads
I saw this post about Leonard Nimoy doing his final convention appearance this week. He’s 80, I would guess doesn’t...
2011-10-05
562 reads
Feedback from the second leg of SQLRelay was very positive indeed. The attendees from my Maidenhead group were very impressed...
2011-10-05
680 reads
Day Of Days
I just don’t know what to say, Saturday was just plain awesome. Easily one of the best days...
2011-10-05
819 reads
Recently I've started following the public work of Mikko Hypponen (blog | twitter), the Chief Research Officer of F-Secure. I've known...
2011-10-05
1,044 reads
My friend, author, and networking guru Don Gabor is back at the Summit for the third year in a row,...
2011-10-04
865 reads
You want to move a database from one server to another. There are two options to do that.
1) Detach/Attach: To...
2011-10-04
1,021 reads
This post is part of a series based on my presentation The Top Ten Skills You Need for SQL Server....
2011-10-04
1,567 reads
Quick blog post to let you know that a special ONE-DAY TODAY ONLY deal by the publisher of the fantastic SQL Server...
2011-10-04
1,335 reads
The other day, someone said to me ?You guys are growing like a weed? Now it was a competitor, so...
2011-10-04
1,035 reads
Last week I blogged about how to get help identifying possible missing indexes by using some of the DMV’s provided...
2011-10-04
819 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