Repaired
It’s done, though I’m nervous about my laptop repair. The last entry on the machine prior to shipping is “repl...
2009-12-14
289 reads
It’s done, though I’m nervous about my laptop repair. The last entry on the machine prior to shipping is “repl...
2009-12-14
289 reads
Tally (or numbers) tables are one of my favorite query writing tools. Such a simple premise that can be applied...
2009-12-14
3,041 reads
I was tagged by Ken Simmons (@kensimmons) in the blog chain started by David Stein (@made2mentor). Here’s Ken’s post and...
2009-12-14
510 reads
The Denver Tech Trifecta is set for February 27, 2010 at Metro State College in downtown Denver. If you are...
2009-12-14
446 reads
The CIO’s Voice, a blog written by Arun Manansingh, has been mentioned in a number of articles I’ve seen as...
2009-12-14
354 reads
I'm reading As Iron Sharpens Iron, which is a classic book on Christian mentoring. Written by Dr. Howard Hendricks and...
2009-12-14
796 reads
My friend Ryan Duclos just sent me a reminder about the upcoming Alabama Code Camp on January 23, 2010, in...
2009-12-14
691 reads
Both of my tips are up on MSSQLTips.com on fixed roles. You can find them here:
Understanding SQL Server Fixed Database...
2009-12-14
822 reads
I’m closing in on vacation – finally – and one of the things I’ll have in the back of my head while...
2009-12-13
591 reads
We started off our end of year meeting with our standard networking meet and greet. It’s going smoother, people are...
2009-12-13
565 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