Steve Jobs 1955-2011
It sucks getting older. There are any number of reminders of that fact on a regular basis as I move...
2011-10-06
900 reads
It sucks getting older. There are any number of reminders of that fact on a regular basis as I move...
2011-10-06
900 reads
My favorite and most used feature of the SSMS Tools Pack is the query history. This feature has saved me a lot of time and effort. DBAs where I...
2011-10-06
22 reads
My favorite and most used feature of the SSMS Tools Pack is the query history. This feature has saved me a lot of time and effort. DBAs where I...
2011-10-06
33 reads
My favorite and most used feature of the SSMS Tools Pack is the query history. This feature has saved me...
2011-10-06
1,148 reads
I decided to start monitoring the amount of free space in my database files so that I can make sure...
2011-10-05
1,605 reads
I’m working on updating my book, Query Performance Tuning Distilled, so that it reflects the new things available in SQL...
2011-10-05
1,823 reads
I’m running through my mental (and some written) pre-travel checklist, tickets, clothes, a few odds and ends, trying to be...
2011-10-05
635 reads
After last year's PASS Summit I put my money where my mouth was and said I will do something this...
2011-10-05
1,252 reads
If you are the decision maker in your company and you are tasked with purchasing one or more servers to...
2011-10-05
1,314 reads
As an old timer at the Sumit I have gone through several iterations of what I carry in my bag.
Luggage
I...
2011-10-05
741 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