Being Involved in the Community
Regular readers know that I enjoy being involved in the SQL Server community. Over the last two and a half...
2010-03-19
343 reads
Regular readers know that I enjoy being involved in the SQL Server community. Over the last two and a half...
2010-03-19
343 reads
Now that I have several posts on what you can do with a Tally table, I figured I'd share my...
2010-03-19
5,159 reads
I imagine most of us change our wallpaper on the desktop from time to time. Frivolous but fun, a simple...
2010-03-19
870 reads
I’m off tomorrow to the UK for a week of work at the Red Gate offices, and then a couple...
2010-03-19
658 reads
We make mistakes when we publish things. It happens, and I am as guilty as some people of mistakenly putting...
2010-03-19
924 reads
At one time or another, each of us has been in a position where we need to persuade a manager,...
2010-03-18
567 reads
If you want to learn more about how to master various Microsoft technologies, visit the website Born to Learn. This...
2010-03-18
1,438 reads
We all know the importance of taking regular backups of our SQL Server databases. This is a useful little script...
2010-03-18
1,725 reads
Microsoft is poised to release new versions of several different products and technologies that have the potential to have a...
2010-03-18
723 reads
One of my development teams needed a mechanism for identifying the value of a key that was part of a...
2010-03-18
4,675 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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