The Power of Regex in PowerShell
PowerShell is probably banned in MLB as a performance enhancing substance. You won’t find red-blooded American baseball player admitting to...
2010-05-25
724 reads
PowerShell is probably banned in MLB as a performance enhancing substance. You won’t find red-blooded American baseball player admitting to...
2010-05-25
724 reads
At long last I am bringing the next installment in this mini-series. You can find the rest of the articles...
2010-05-25
1,441 reads
To celebrate the Victoria Day Holiday in Canada I drove down to the U.S.A. with 'ol Volvo Wagon (not Smart this time, since 3k of...
2010-05-25
1,396 reads
Some of you may have noticed that I haven’t posted for a while. The 12th May was the date of...
2010-05-25
634 reads
Last week I wrote an editorial for SQLServerCentral titled Does The Job Matter To You?, asking how much the type...
2010-05-25
570 reads
So for those of you who attended SQL Saturday Dallas this past weekend, here’s my Top Ten(ish) list from the...
2010-05-25
617 reads
I saw someone post a question recently about tracking down who deleted a stored procedure. I suggested the default trace,...
2010-05-25
964 reads
This is a strange feeling. No frantic deadlines. No daily conference calls with the team. No hurried trips to the...
2010-05-24
640 reads
Last week I posted an article about plagiarism. This is a follow-up to that. After posting that blog article, Steiner...
2010-05-24
963 reads
I’m lazy. And frankly, I’m not ashamed to admit it. When a software comes along that can do the work...
2010-05-24
1,290 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