Droid Apps
A friend of mine recently got his first smart phone, an Android. My wife has also recently moved into the...
2011-08-08
775 reads
A friend of mine recently got his first smart phone, an Android. My wife has also recently moved into the...
2011-08-08
775 reads
I’m going to ramble today. This is a complex topic and I think you’ll see by the end that I...
2011-08-08
918 reads
Have you ever found yourself in need of exporting all of the reports from a Report Server? I have found myself in need of extracting all RDLs from a...
2011-08-08
44 reads
Have you ever found yourself in need of exporting all of the reports from a Report Server? I have found...
2011-08-08
2,551 reads
It sounds simple and logical doesn’t it. One could say it is common sense right? How many of us are...
2011-08-08
528 reads
I was recently discussing with a group of budding DBA’s how you go about performing a restore of database. They...
2011-08-08
1,357 reads
Probably one of the most anticipated additions to the latest version of PowerPivot is the ability to create KPIs. PowerPivot...
2011-08-08
2,821 reads
My primary responsibility at my organization is no longer to be the security architect and incident response team lead. I...
2011-08-08
963 reads
I’ve just finished promised SSMS add-in which enables creating of custom folders directly in SSMS Object Explorer. Idea for add-in...
2011-08-08
3,212 reads
As a DBA why would I consider attending a pre-con by John Welch at SQL Saturday 89 titled Data Warehousing with...
2011-08-08
1,590 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