Speaking at the Rocky Mountain Tech Trifecta on February 27
I will be giving my Dr. DMV: How to Use Dynamic Management Views to Monitor and Diagnose Performance Issues With...
2010-02-09
512 reads
I will be giving my Dr. DMV: How to Use Dynamic Management Views to Monitor and Diagnose Performance Issues With...
2010-02-09
512 reads
This month Rob Farley is hosting TSQL-Tuesday #3. The topic is Relationships and he has left it wide open for...
2010-02-09
890 reads
For almost a year now, I’ve exchanged emails with the leaders of the Memphis SQL Server User Group, trying to...
2010-02-09
328 reads
I am excited to say I have been published on Simple-Talk. This was my first foray into being professionally edited. I...
2010-02-08
338 reads
Ok Guys and Gals. I know I have been a slow blogger thus far in 2010. To try and make...
2010-02-08
349 reads
I'll be presenting two sessions this week (February 9 and 11, 2010), both on SQL Server Indexing. The first is...
2010-02-08
359 reads
Due to arrive from China today. I got a shipping notice of 2nd day shipping from Lenovo last week, but...
2010-02-08
304 reads
If you haven't seen the Simple-Talk newsletter (it's free, so sign up!) you may not have seen my article on...
2010-02-08
1,281 reads
Scott Klein has put together the first annual Geek Golf event. Scheduled for May 8th, 2010, it’s being held at...
2010-02-08
529 reads
Just booked the travel, going up the afternoon of March 5th and returning on an early evening flight on the...
2010-02-08
344 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