My Greatest Weakness
I was tagged by Mike Walsh in the latest meme to circle the SQL Server community, which is what is...
2009-12-16
1,648 reads
I was tagged by Mike Walsh in the latest meme to circle the SQL Server community, which is what is...
2009-12-16
1,648 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-12-15
586 reads
I had a question from a member of our local user group about options to get a legal copy of...
2009-12-15
745 reads
Endgadget has a post up about an upcoming 32nm Westmere family CPU called the Core i7-980X, which will have six...
2009-12-15
768 reads
I was tagged earlier this week by Tim Ford to comment on my biggest weakness. I wish I could say...
2009-12-15
787 reads
Each year I attend an annual Christmas party that’s essentially a JD Edwards Operations department party. JD Edwards hasn’t existed...
2009-12-15
716 reads
John Baldwin and Morgan Smith are going to repeat in Birmingham this year on Mar 27. They’ve got a great...
2009-12-15
601 reads
The short answer is that's where my heart has been. I write because I feel compelled to write. I don't...
2009-12-15
1,025 reads
Database Design. Sounds simple, and at the same time, demanding. I mean, what's to design. You just need a few...
2009-12-15
359 reads
In Update #20 I mentioned that I was hoping to get the chapters portfolio for 2010. A few weeks have...
2009-12-14
728 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