How Long Is Your Receipt?
Part of running a businness is deciding when and where to spend your hard earned cash. It's interesting to look...
2008-08-14
537 reads
Part of running a businness is deciding when and where to spend your hard earned cash. It's interesting to look...
2008-08-14
537 reads
2008-08-13
1,097 reads
SSIS access permissions are managed via Component Services. It is the DCOM object named MSDTSServer. Here are the steps to...
2008-08-13
46,054 reads
The following events are for August 21, 2008, in downtown Columbia, SC.
Morning - Momentum: IT ExecsMorning - TechNet: Vista, PowerShell, Group PolicyAfternoon...
2008-08-13
2,402 reads
Recently I needed to make a call and the only number I had was a mnemonic one. I get why...
2008-08-13
1,906 reads
With all the options we have for viewing query plans I still prefer the graphical view. Combined with tooltips and...
2008-08-12
528 reads
I had to install the RTM version of SQL Server 2008 a few days ago since I'm tech reviewing a...
2008-08-12
752 reads
My friend Jonas Stawski just sent me a note about the upcoming Code Camp in Argentina on October 24, 2008....
2008-08-11
608 reads
I've just posted minutes of the August 2008 user group meeting. We had two great presentations, a short one from...
2008-08-10
696 reads
There are many technical conferences available for SQL Server professionals, such as PASS. I have been lucky enough to go...
2008-08-10
1,043 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