Meeting Offsite and a Little Vacation
I’m heading to our “publishing summit” today at one of the Cambridge University buildings. I’m a part of the group...
2010-03-24
785 reads
I’m heading to our “publishing summit” today at one of the Cambridge University buildings. I’m a part of the group...
2010-03-24
785 reads
Imagine you need to create a database on a customer’s machine, but you don’t know how they have their file...
2010-03-24
1,405 reads
I’m just back from the March 2010 Board meeting and it went better than usual (for any meeting). Most of...
2010-03-24
598 reads
After consecrating several posts on workplace bullying, and hearing our great Steve Jones rant about Toshiba’s lack of action regarding...
2010-03-24
1,969 reads
Having gone to an academic magnet school, I have quite a few friends who are teaching at the university level...
2010-03-24
1,925 reads
I am Script. I will update your database.
Despite the best laid plans, sometimes circumstances or project scope change and the...
2010-03-24
675 reads
This is not a technical or SQL Server post, but it does illustrate the power of networking.
We recently took my...
2010-03-24
516 reads
The MSDN - Microsoft, has collected too much info about features supported by the SQL Server 2008 R2, for all editions...
2010-03-24
1,246 reads
It’s getting close to that time of year when you can apply to run for the PASS Board of Directors....
2010-03-24
1,650 reads
I recently posted a couple of scripts that backup all databases on your SQL Server instance to disk with a...
2010-03-23
1,339 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