Volunteering for PASS
I said I was going to do it last year, and I followed through. After submitting an application to volunteer,...
2010-03-15
746 reads
I said I was going to do it last year, and I followed through. After submitting an application to volunteer,...
2010-03-15
746 reads
One of the new management related features in SQL Server 2008 R2 is SQL Server Utility. SQL Server Utility gives...
2010-03-15
4,190 reads
T'was the Night Before the MCM ...
SQL Server MCM starts tomorrow. My wife thinks it's cute that I'm excited. The...
2010-03-14
977 reads
Recently I wrote a short post on the default trace in SQL Server. You can read that here. In this...
2010-03-14
14,863 reads
Finding Date Ranges for Calculating StatisticsI received the following question from a fellow DBA:
I need your input to derive the...
2010-03-14
1,710 reads
A while back I blogged about using Checklists , but there's another task you want to incorporate into your workflow - documentation....
2010-03-13
1,210 reads
When developing reports that use Analysis Services as a data source end user can sometimes be confused about some of...
2010-03-12
515 reads
I have worked in many industries, but most of my time has been in the publishing industry. For those not...
2010-03-12
304 reads
When developing reports that use Analysis Services as a data source end user can sometimes be confused about some of...
2010-03-12
3,699 reads
The Monsoon
My trip to the meeting, short as it was, involved some of the worst driving conditions I've ever personally...
2010-03-12
398 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