Stop Splashing with -NoSplash
Many times when I'm teaching a class or working with a group, they express frustration at the load time for...
2009-11-23
419 reads
Many times when I'm teaching a class or working with a group, they express frustration at the load time for...
2009-11-23
419 reads
Hey there Gang !
Most of you probably know Jamie Thompson has move his blog over to SQLBlog.com. This is worth noting...
2009-11-23
665 reads
My presentation and sample files from SQLSaturday in Orlando are now online for you to download. Check them out at...
2009-11-23
520 reads
I can’t wait until Feb 27 when Code Camp is right in my backyard! I just submitted my session for...
2009-11-23
352 reads
I am not about to get into a theoretical discussion of whether certifications will benefit you in your career. I...
2009-11-23
459 reads
Everyone likes to get a project done, but many times in our rush to deploy we bypass some of the...
2009-11-23
421 reads
One of the most underused features in SSMS is the additional templates that are available for MDX, DMX, and XMLA....
2009-11-23
599 reads
My new blog has been centralized at http://www.bidevelopernetwork.com/blogs/AdamJorgensen/. Check it out for all my new updated content.
2009-11-23
535 reads
I haven’t done a car update in some time, and I’d like to get back to them. Surprisingly quite a...
2009-11-23
723 reads
As a speaker, blogger, even a DBA at work it’s hard to know when you’re having a positive impact on...
2009-11-23
725 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