SQL Server Useful Reading
I have been having an IO subsystem issue recently and I found the whitepapers very useful and wanted to post...
2010-02-09
788 reads
I have been having an IO subsystem issue recently and I found the whitepapers very useful and wanted to post...
2010-02-09
788 reads
I’m doing a basic presentation at the Rocky Mountain Tech Trifecta later this month on what SQL Server is from...
2010-02-09
428 reads
Small Business Ownership. It’s one of the Great American Dreams. Our forefathers, the founders of the country that I call...
2010-02-09
783 reads
The segment should go out in this week’s show, but I spent half a day down in Colorado Springs with...
2010-02-09
362 reads
I missed T-SQL Tuesday #1, but participated in T-SQL Tuesday #2. Now it's time for #3, and I'm making my...
2010-02-09
3,381 reads
It's here! Our February meeting is tonight at 6pm at End To End Training, 225 S. Westmonte Drive, Suite 2010,...
2010-02-09
383 reads
You may have noticed a flux of new blog post entires yesterday from a group of people talking about the...
2010-02-09
812 reads
I was watching Michelle Ufford’s (blog, Twitter) presentation from the 2009 PASS Summit recently on DVD. I had purchased them,...
2010-02-09
971 reads
Note: These are my opinions and don’t reflect the official views of PASS, just my thoughts!
I’ve been to every PASS...
2010-02-09
462 reads
I am excited to say I have been published on Simple-Talk. This was my first foray into being professionally edited. I...
2010-02-09
334 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