Book Review: The Cleaner
I read The Deceived a few weeks back and enjoyed it, even though it was the 2nd book in the...
2009-11-19
506 reads
I read The Deceived a few weeks back and enjoyed it, even though it was the 2nd book in the...
2009-11-19
506 reads
With the explosion of Netbooks, it has become important to find new ways to load operating systems. I recently picked...
2009-11-19
408 reads
Today, Please see my featured article appearing on SQLServerCentral.com discussing SQL Agent Job Ownership.
Have you ever had a situation...
2009-11-19
635 reads
I used to really try not to over-license in the small companies I worked at. It seems I’d spend a...
2009-11-19
792 reads
During Steven Sinofsky’s keynote address at PDC09 today, he started telling a story about how some of the engineers in...
2009-11-19
1,032 reads
I’ve had this on my list of things to talk about someday, a recent post on almost the same subject...
2009-11-18
610 reads
Back before I grew up and became a DBA, I used to be a developer. This seems to be a...
2009-11-18
489 reads
After several tries I think we finally have it working. If you were unable to attend the last two SQLLunches,...
2009-11-18
1,131 reads
There was a time that Windows ran on multiple architectures. We had the PowerPC, Alpha, and MIPS CPUs in addition...
2009-11-18
706 reads
In a recent blog post Brent Ozar questioned why PASS decided to relaunch the SQL Server Standard given the failure...
2009-11-17
754 reads
By Steve Jones
I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...
By Hemantgiri
I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...
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