SQL Server Login Errors
Hello Dear Reader. Quick blog today. If you are working in the SQL Server world eventually you will try to...
2013-07-26
1,037 reads
Hello Dear Reader. Quick blog today. If you are working in the SQL Server world eventually you will try to...
2013-07-26
1,037 reads
If you are looking for a presentation that brings together bacon, unicorns, and lightsabers, then you should have seen my...
2013-07-26
932 reads
Over the years I have been fortunate or unfortunate enough, depending on who you are to have experienced several disasters...
2013-07-26
1,080 reads
I’ve always been a fan of the feeling when I find an old blog post that’s got just the information...
2013-07-26
913 reads
I’m leaving mid-morning today to drive to Cocoa with my family for a beach weekend and SQLSaturday #231. I’ll be...
2013-07-26
708 reads
I’ll try to write more about these over the next couple months, but I wanted to write down a quick...
2013-07-26
1,132 reads
Last time, in Part
I of my page-split mini-series, we began speaking about page
splits, defining what they are, how they occur,...
2013-07-26
13,678 reads
I’ve encountered a situation where I need to find out the database file,log file, total size and other useful information...
2013-07-25
4,602 reads
Microsoft has posted ALL the session videos for TechEd Europe 2013 and they are available for free! Some great videos...
2013-07-25
873 reads
So this week was another first for me, I finally bit the bullet and gave a talk at the Leeds...
2013-07-25
777 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