April Fools is Fun
Some good jokes going around, and the few I wrote for SQLServerCentral went over well. There was a good one...
2010-04-01
566 reads
Some good jokes going around, and the few I wrote for SQLServerCentral went over well. There was a good one...
2010-04-01
566 reads
As we close out the First Quarter of 2010 it is time to review progress made on the Goals I...
2010-04-01
515 reads
I bet most of you use some type of diff/comparison tool at work. Probably one for the file system and...
2010-04-01
546 reads
I’ve always said that it didn’t matter what the database was. If it could do the job then it’s worth...
2010-04-01
419 reads
I recently came across an interesting script to help show index info and usage. As I began to dissect the...
2010-03-31
2,011 reads
Recently, we found out that HP Data Protector had an update, and I took for granted that this update would...
2010-03-31
12,467 reads
The family returned back from the UK last night, after traveling for something like 14 hours, plus an early morning...
2010-03-31
1,549 reads
Intel has finally released the long awaited (at least by me) 45nm Xeon 7500 series processor. This beast has eight...
2010-03-31
2,017 reads
Continuing on from Part 2, I want to continue this time with two points I left open last time:
How to...
2010-03-31
1,672 reads
When I wrote my most recent free eBook, Brad’s Sure Guide to SQL Server Maintenance Plans, some of the DBAs...
2010-03-31
2,307 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