Tagxedo
I found this while looking for a quick way to throw some words into a slide, was thinking something along...
2010-09-07
600 reads
I found this while looking for a quick way to throw some words into a slide, was thinking something along...
2010-09-07
600 reads
Normally, I try to stick to posting technical info or community stuff on the blog, but there were a couple...
2010-09-07
573 reads
Previously I’ve written about doing fun IO stuff in C#. I found out that some of my old tricks still...
2010-09-07
1,884 reads
I’ll be doing a presentation titled Introduction to Statistics in SQL Server today (Sep 7, 2010) at noon for the...
2010-09-07
227 reads
I haven’t been speaking a lot lately as I’ve been busy working, planning SQLSaturday #49 – Orlando, and planning PASS SQLRally,...
2010-09-07
482 reads
I ran into an issue recently where I had a third party supplied database set to auto close. I couldn't...
2010-09-07
3,003 reads
In the last weblog post I have talked about the differences in unique and non-unique
non-clustered indexes on a unique clustered...
2010-09-07
4,125 reads
I had someone send me a note recently asking some questions about how to get set up to work with...
2010-09-07
1,063 reads
Another choice brought about by wandering the local library, Rehnquist: A Personal Portrait of the Distinguished Chief Justice of the...
2010-09-07
597 reads
Quick update from your PASS BI Virtual Chapter folks!
September 29th, Mike Davis is doing a session on SSRS R2: The New...
2010-09-06
392 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