Laptops Part 2
EarlierI mused a bit about when and why it makes sense to upgrade to a new laptop. One note I...
2008-09-24
2,032 reads
EarlierI mused a bit about when and why it makes sense to upgrade to a new laptop. One note I...
2008-09-24
2,032 reads
Why did I write this? I got challenged by Andy Warren
to write a bit about why I wrote something. I...
2008-09-23
1,538 reads
I've never really gotten the social site thing. I don't get the appeal of Facebook, LinkedIn, Plaxo, MySpace, etc., beyond...
2008-09-23
1,633 reads
Several years ago during the first iteration of the Orlando SQL Server Users Group I talked a friend into attending....
2008-09-23
1,846 reads
I've been playing with WSUS lately and I've been less than satisfied with the reporting. Since the information I need...
2008-09-23
1,126 reads
Mechanical posts are ones that are either auto-generated, or manually input with no real additional work put into them - an example...
2008-09-22
1,051 reads
Why did I write this? I got challenged by Andy Warren to write a bit about why I wrote something....
2008-09-22
768 reads
It's been a while since I've written a blog post that wasn't a user group announcement. Here's what I've been...
2008-09-22
681 reads
I've been using a Dell Latitude for a looong time, probably going back to 2000 or 2001. Decent machine - though...
2008-09-21
797 reads
Whenver we start a somewhat big IT project, it is natural for us to build a team dedicated to the...
2008-09-20
2,743 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