Getting Scared
This is not a technical post, it’s personal, but I need to express my fears. It isn’t about our economy,...
2010-04-01
1,570 reads
This is not a technical post, it’s personal, but I need to express my fears. It isn’t about our economy,...
2010-04-01
1,570 reads
Microsoft’s Kevin Cox (from SQLCAT) and I co-authored a blog post titled Using SQL Agent Job Categories to Automate SQL...
2010-04-01
934 reads
I received my renewal notice and, after checking the message header, it is April 1st, I got very happy. I’d...
2010-04-01
512 reads
Just as an experiment, I am going to post a different DMV query every day for the next 30 days. ...
2010-04-01
898 reads
I have a passing interest in storage technology and trends so you can probably guess I got really excited after...
2010-04-01
511 reads
I started blogging a few months ago and since I started writing my own blog, I've been a much bigger...
2010-04-01
506 reads
Sometimes I think I’m quite the goober. Alternately I’ll laugh or put my head in my hands as I try...
2010-04-01
370 reads
One of my aims at the start of the year was to improve my Powershell and scripting skills. I run...
2010-04-01
1,144 reads
Post your responses to the above SQL Aloha Question of the Month in the comments section below (at www.bradmcgehee.com if...
2010-04-01
487 reads
Steve Jones’ (@way0utwest) recent SQLServerCentral editorial, The Missing Certification, has spawned a vigorous debate about what the missing certification should...
2010-04-01
1,431 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