Join Me for Breakfast Tuesday at the Summit
I mentioned this in my SQLFun post last night and wanted to call out separately here, I typically do a...
2011-10-06
798 reads
I mentioned this in my SQLFun post last night and wanted to call out separately here, I typically do a...
2011-10-06
798 reads
The GiveCamp in Orlando needs volunteers to convert 25 reports from Crystal to Reporting Services. Food is provided, just need...
2011-10-06
547 reads
When trying to detect whether updates have been installed or not, there were several places we investigated:
HKLM\Software\Microsoft\Windows\CurrentVersion\UninstallHKLM\Software\Microsoft\WindowsNT\CurrentVersion\HotFixHKLM\Software\Microsoft\UpdatesSome updates still write to...
2011-10-06
2,716 reads
The annual PASS Summit is definitely about technology and learning, but if that’s all you get out of it you’re...
2011-10-06
909 reads
Day Of Days
I just don’t know what to say, Saturday was just plain awesome. Easily one of the best days...
2011-10-05
819 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
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
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
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