Blog Images and PNG Compression
I’m not terribly good at putting at least one image in every post. The images I do use are either...
2013-07-25
946 reads
I’m not terribly good at putting at least one image in every post. The images I do use are either...
2013-07-25
946 reads
Whilst doing some ad-hoc work on some data on a 2012 SP1 instance I came across an issue with the...
2013-07-25
1,378 reads
This topic is part of the lessons covered in Optimization and Troubleshooting SQL Server 2012 which is 14% of overall...
2013-07-25
1,853 reads
TODAY, JULY 25: the NYC SQL Server User Group is honored to have a visiting SQL Server MVP all the...
2013-07-25
1,234 reads
In the last post , we have discussed about the Differential Change Map pages and how it is utilized in the differential backup process.In this post, let us try to...
2013-07-25
50 reads
I recently encountered a DBCC CHECKDB failure with a fairly non-specific failure message. The error message said it terminated abnormally...
2013-07-24
7,239 reads
In the last post , we have discussed about the Differential Change Map pages and how it is utilized in the...
2013-07-24
3,779 reads
I’ve never really used the F1 key for help files with most applications. I was surprised at the usefulness in...
2013-07-24
878 reads
I started this post over a year ago and have just now come back around to finish it. Over the...
2013-07-24
659 reads
Building Connectors Is Crap in SSIS – Updated What else can I say. I finally broke when I had to build a flat file connector with 258 columns that...
2013-07-24
17 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