Vote For The PASS SQLRally Logo
We received over 100 submissions for our 99designs contest to design the SQLRally logo. The SQLRally planning team, with help...
2010-08-04
804 reads
We received over 100 submissions for our 99designs contest to design the SQLRally logo. The SQLRally planning team, with help...
2010-08-04
804 reads
[This is part three in a series of posts about how to effectively transition to your new role after being...
2010-08-04
802 reads
Hey folks, we have some very exciting SQL Lunch speakers on the docket coming up. Check out Devin Knight(Blog)|(Twitter) and...
2010-08-04
193 reads
I’m absolutely positive that I’m not the first to blog on this topic, but I haven’t seen anyone else say...
2010-08-04
949 reads
Goor Morning folks !
It's time for another motivational Monday. Today I want to remind you to be careful about biting...
2010-08-04
497 reads
Today's motivation is that you had nothing to do with this. IF this Pilot had the equivalent of a community...
2010-08-04
192 reads
In life, many times we get confused by symbols or indicators that we make assumptions about. You know what they...
2010-08-04
197 reads
This week it's all about speed. Many thing in life are drive n by how fast we can get them...
2010-08-04
201 reads
Well SQL Saturday here in South Florida was QUITE an event this past weekend. We had over 400+ attendees and...
2010-08-04
183 reads
During the configuration of one of the SSRS instances I have stumbled upon a problem with SSRS Subscription. Subscriptions were...
2010-08-04
1,026 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