Multiple usage of functions to ensure “value” is not null? – NO
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three...
2017-05-10 (first published: 2017-04-29)
2,401 reads
In this post I’m describing a piece of code that is not well written. The author (unknown) had applied three...
2017-05-10 (first published: 2017-04-29)
2,401 reads
Today was my presentation in the April GroupBy conference lineup. I presented on DevOps and changing your database development to...
2017-05-19 (first published: 2017-04-28)
1,688 reads
I had a brief conversation with Stuart Ainsworth yesterday over Facebook. In passing I mentioned that I was doing well...
2017-04-28
636 reads
VS Live takes place in Austin on May 15-18, 2017. This is a great conference in a fun city. It’s...
2017-04-28
843 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
527 reads
Nearly May! Although it’s been snowing this week in Dublin so summer still appears to be a while off…
Community driven...
2017-04-28
590 reads
I have been quite interested by vs code and have been using it more and more recently. I use it...
2017-05-09 (first published: 2017-04-27)
3,462 reads
I have been quite interested by vs code and have been using it more and more recently. I use it...
2017-04-27
226 reads
I have been quite interested by vs code and have been using it more and more recently. I use it...
2017-04-27
237 reads
Sometimes it helps to go back to the basics and indexing is always a great topic. SQL Server has a...
2017-05-09 (first published: 2017-04-27)
3,118 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