Microsoft Release end dates:
I realize that we all should know when the support of Microsoft sql server will expire. we should have this...
2009-11-13
700 reads
I realize that we all should know when the support of Microsoft sql server will expire. we should have this...
2009-11-13
700 reads
Thanks to everyone who attended the State of Tennessee’s .NET User Group meeting yesterday. I really enjoyed spending time with...
2009-11-13
832 reads
Every so often I see a post in a forum or on Twitter about the use of xp_cmdshell. Usually it is someone looking for...
2009-11-13
21,123 reads
If you’re in the Ft. Worth area next Wednesday, November 18, please join me at the Ft. Worth SQL Server...
2009-11-13
560 reads
So now that we’re 7 days removed from the end of the SQL PASS summit, I’ve finally managed to arrange...
2009-11-13
845 reads
There were tons of people taking pictures and video during the PASS Summit. I found a number of pictures on...
2009-11-13
1,373 reads
Everyone likes to get a project done, but many times in our rush to deploy we bypass some of the...
2009-11-13
1,798 reads
I have been pretty busy with a server consolidation and move project at work. We had four Dell PowerEdge 6800...
2009-11-13
1,331 reads
I grew up watching baseball on TV and playing it too, and for reasons I don’t recall my Dad’s favorite...
2009-11-12
548 reads
Thursday started off with a meeting of the SQL Saturday minds over breakfast at Top Pot Donuts a few blocks...
2009-11-12
883 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