Writing With More Than One Voice
I’ve been blogging for a couple of years now and have slowly settled into the style and pattern of blogging...
2010-04-06
310 reads
I’ve been blogging for a couple of years now and have slowly settled into the style and pattern of blogging...
2010-04-06
310 reads
We’ve been busy on the transition and we’re finally at a place where we can give you an update on...
2010-04-06
364 reads
The DMV for Day 6 is sys.dm_db_index_usage_stats, which is described by BOL as:
Returns counts of different types of index operations...
2010-04-06
872 reads
It’s not often that I’ve had the need to trace back a client to their host computer, but there are...
2010-04-06
856 reads
Just ran into an interesting issue AGAIN. It seems that when you nest views in a query you are opening...
2010-04-05
8,716 reads
I saw a note that T-Mobile is accepting trade-ins of an iPhone for credit towards a new HTC HD2. That’s...
2010-04-05
669 reads
Introduction
I was recently working a production issue that required me to log in via the Dedicated Administrator Connection (DAC). When...
2010-04-05
349 reads
Microsoft’s Dan Reger has announced that Microsoft will not be supporting the Itanium architecture after Windows Server 2008 R2, SQL...
2010-04-05
2,354 reads
I’ve blogged in the past about the nHibernate project that has been going on at my company for the last...
2010-04-05
1,021 reads
Recently my son had a short paper to write for school. He’s a sixth grader, and this year is a...
2010-04-05
564 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