Challenge Accepted
My life for the last 2 years has been a constant battle of putting out fires with system performance; finally...
2016-09-14
315 reads
My life for the last 2 years has been a constant battle of putting out fires with system performance; finally...
2016-09-14
315 reads
This is just a quick reminder to encourage you to attend my next round of all-day precon training session at the...
2016-09-14
403 reads
Just a quick blog post about an error I recently encountered when trying to create a mobile report for SSRS...
2016-09-14
701 reads
Recently I have been creating many Azure SQL databases via the portal where I started to find it quite tedious. So...
2016-09-14
521 reads
As I stated in my earlier blog on future DBA, we should learn many things as we can to be...
2016-09-14
467 reads
Execution plan helps in knowing how a query gets executed and troubleshooting a query which is performing poor. In SQL...
2016-09-14
860 reads
Recently I have moved a dozen websites and web apps to Azure. Some are small apps used by a few...
2016-09-13
137 reads
It’s T-SQL Tuesday time and this month we have Jeffrey Verheul giving us the topic of the cloud, or Azure...
2016-09-13
602 reads
Another alliteration post. Maybe I’ll make all my titles tongue twisters to test your talents?
This is my new favorite session....
2016-09-13
641 reads
Recently I have moved a dozen websites and web apps to Azure. Some are small apps used by a few...
2016-09-13
198 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