Winner of the May SQL Aloha Contest
This month’s question had 21 responses, although a few were duplicates. The question was:
What is your favorite DBA joke?
If you...
2010-06-02
415 reads
This month’s question had 21 responses, although a few were duplicates. The question was:
What is your favorite DBA joke?
If you...
2010-06-02
415 reads
Formatting reports can be a fun process. I personally look at myself as a Monet or Picasso when creating my...
2010-06-02
513 reads
I have non-official info about the Microsoft event, and the only event, TechUpdate Prishtina, in Kosova. The event will be...
2010-06-02
513 reads
I was browsing Twitter today, and I noticed some retweets linking to a blog post that Brad McGehee (blog | twitter)...
2010-06-01
581 reads
Invitation for T-SQL Tuesday #007
New hotness
Welcome back to the blog party known as T-SQL Tuesday. I’m honored to be hosting...
2010-06-01
600 reads
If you are planning to submit any sessions to the 2010 PASS Summit, the deadline is Saturday, June 5, 2010....
2010-06-01
401 reads
While looking over my SQL Server Error logs, I noticed a small flurry of error messages like you see below,...
2010-06-01
1,273 reads
A while back I had a developer come to me complaining that every time they ran a large delete statement on a certain database the delete would fail with...
2010-06-01
11 reads
A while back I had a developer come to me complaining that every time they ran a large delete statement on a certain database the delete would fail with...
2010-06-01
32 reads
Introduction
A while back I had a developer come to me complaining that every time they ran a large delete statement...
2010-06-01
1,004 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