SQLRelay UK
With the Olympics coming to the UK next year what better way to get into the spirit of things than...
2011-08-23
604 reads
With the Olympics coming to the UK next year what better way to get into the spirit of things than...
2011-08-23
604 reads
In our open all hours global working world, do you ever wonder if perhaps the technology that is supposed to...
2011-08-22
1,040 reads
Regular readers will now that I like to talk (quite a lot) about how we can be more effective as...
2011-07-11
1,453 reads
A reader wrote to me over the weekend, seeking advice on behalf of their friend, who had been feeling deflated...
2011-06-27
862 reads
I’m ashamed to admit that somehow this months T-SQL Tuesday has completely blindsided me, which is kind of ironic really when you consider...
2011-06-14
456 reads
Bluntly put, this is something that you always want to be taking advantage of.
As a Database Administrator I’m always on...
2011-06-13
665 reads
I can think of no other simple phrase that has the same pent up potential to ignite the most colourful...
2011-06-05
595 reads
Let’s face it, a lot of us don’t enjoy attending meetings and can often find them to be a bit...
2011-05-31
1,832 reads
Where do you see yourself in the future? Are you working at the same company, are you working in a...
2011-05-24
1,103 reads
I know what I am waiting for. I know exactly what every SQL Server instance in my care is waiting...
2011-05-16
1,028 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