Christmas Holiday
We booked a vacation over the weekend, so I’m marking off the week before Christmas as vacation this year. Hoping...
2010-02-22
934 reads
We booked a vacation over the weekend, so I’m marking off the week before Christmas as vacation this year. Hoping...
2010-02-22
934 reads
There are many ways to optimize your analysis services cubes, but the real trouble is how do you know where...
2010-02-22
611 reads
It’s now 3 events that I’ve canceled in the last 6 months, and a 4 or 5 more that I’ve...
2010-02-22
882 reads
I'm a big believer in looking at systems when everything is okay. I'm not the only one, as Joe Richards, a...
2010-02-22
880 reads
So the other day I read Andrew Kelly’s article, Do You Have Hidden Cache Problems, in the latest electronic edition...
2010-02-22
374 reads
I know it’s daunting and a little intimidating, but there are so many people with knowledge to share. I see...
2010-02-22
939 reads
This happened earlier in the year, finally getting around to writing some notes on it – you can read more here....
2010-02-22
739 reads
Data compression is an Enterprise Edition only feature that was added in SQL Server 2008. It allows you to use...
2010-02-22
2,118 reads
Or am I?
As I proceed down the path on a consolidation project, I have taken time to pause and ponder...
2010-02-21
674 reads
I recently restored a SQL Server 2005 database to a testing environment. The database contained several CLR assemblies, when the...
2010-02-21
1,183 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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