Email: Getting My Attention, The Wrong Way
I was scrolling through my professional email as my wife drove me in to work (my car is being looked...
2009-12-11
663 reads
I was scrolling through my professional email as my wife drove me in to work (my car is being looked...
2009-12-11
663 reads
I continue to read biographies without a real direction, stumbling across an interesting event in one and following that to...
2009-12-10
323 reads
I'm having a day off tomorrow, got some nice things planned including a trip to the beach with the puppies....
2009-12-10
496 reads
"... but you won't tell me how to fix it." I remember that quote coming out of my mouth when I was...
2009-12-10
804 reads
When SQL Server 2005 was released Microsoft made a major change to the client tools provided with SQL Server, moving...
2009-12-10
1,778 reads
Today, on SQLServerCentral.com, SSIS Package Credentials, is the featured article on the site.
I originally drafted this article as a blog post, and...
2009-12-10
697 reads
Had a message waiting on my phone this morning that there was a system upgrade available. Interesting, think it’s the...
2009-12-09
234 reads
It’s a compilation of the best articles over the past year or so, all pushed into a nice PDF that...
2009-12-09
403 reads
“What’s wrong with the database?" or “I can’t connect to SQL Server” How many times have you heard phrases like...
2009-12-09
978 reads
I wrote an editorial last summer asking people what type of protection they had for their home setup. I got...
2009-12-09
711 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