Volunteering Equals Karma, Not Cash
One of the things I think we don’t do well sometimes – in generally – is set fair expectations with regards to...
2010-08-09
662 reads
One of the things I think we don’t do well sometimes – in generally – is set fair expectations with regards to...
2010-08-09
662 reads
Kendal Van Dyke blogged about it last week here, we ended up with 3 great designs to pick from for...
2010-08-09
336 reads
Someone posted a note asking how they might restore if the disk that contained their transaction log crashed. I replied...
2010-08-09
417 reads
In this three part series SQL Server MVP Andy Leonard will discuss SSIS Design Patterns.
Speaker: Andy Leonard
Add To Outlook:...
2010-08-08
1,073 reads
If you are using partitioned tables, this may come in handy. I’ll keep it short and just post the code....
2010-08-08
1,749 reads
I am very happy to see Damon Armstrong take up this touchy subject in Simple-Talk.com `s Opinion section. Worth a...
2010-08-08
538 reads
Nominate your favorite products for the SQL Server Magazine 2010 Community Choice Awards. August 24th Deadline for Nominations...
SQL Server...
2010-08-08
1,528 reads
Where can you spend $100 and get three full days of technical training? devLINK of course. devLINK 2010 was held...
2010-08-08
514 reads
With everyone geared up for SQL Cruise I’m surprised we can air this video but since we kicked it off...
2010-08-07
205 reads
Ok folks, the video from SQL Saturday 40 is finally up. Thanks to the sponsors who helped foot the bill...
2010-08-07
280 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