Honoring a Contest
Over the last six months or so, Pepsi has been running a PepsiStuff promotion on many of their products. They...
2009-01-15
652 reads
Over the last six months or so, Pepsi has been running a PepsiStuff promotion on many of their products. They...
2009-01-15
652 reads
It is strange how people react in different circumstances. Yesterday while going through the forums, there was an interesting post....
2009-01-15
457 reads
I was browsing through the new titles that are on Safari and saw some planning guides around Windows Server 2008...
2009-01-15
825 reads
Yesterday I participated in my first BI SIG live meeting. This special interest group is led by Amy Lewis who...
2009-01-15
678 reads
It seems like the benefits of being involved in PASS just never stopped. If you didn’t see the PASS newsletter...
2009-01-15
581 reads
We all have those things that happen at work that somehow turn into something other than expected, and sometimes in...
2009-01-15
656 reads
If you couldn’t make it to the 2008 PASS Community Summit in Seattle, WA last fall, perhaps you can attend...
2009-01-14
678 reads
There was a time that I really felt I would be more productive with two monitors. I think I found...
2009-01-14
1,283 reads
It's been about two weeks since I posted PASS Update #1, so time for another update on my activities as...
2009-01-14
730 reads
One of my goals for the year is to update my blog roll some and try to recognize new/interesting bloggers....
2009-01-13
655 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