Blogging on SQLServerCentral.com
Recently my friend Steve (managing editor of SSC) posted to his blog about The Bad Karma Project that has to...
2008-07-30
1,374 reads
Recently my friend Steve (managing editor of SSC) posted to his blog about The Bad Karma Project that has to...
2008-07-30
1,374 reads
Recently I was driving home and as I made that turn into the sub-division where I live, over the course...
2008-07-30
1,362 reads
As a follow-up to yesterday's post, Part III of the SQL Server panel interview has been posted on-line. A name I...
2008-07-30
1,726 reads
Quite the debate going on from today's editorial: Stored Procedures Reconsidered. I chimed in late, and going on the "pro-sprocs"...
2008-07-30
1,550 reads
Rebuilding Stats was published yesterday on SSC, some nice comments posted to it as well. The main point of the...
2008-07-29
1,482 reads
I was asked by Odin Jobs to participate in an email interview on SQL Server. Joining me on the panel...
2008-07-29
2,015 reads
Not all of us work at companies big enough to justify the expense/time it takes to implement something like MS...
2008-07-29
1,453 reads
I saw this post from Rick Strahl about IP6 Addresses in Vista breaking some code, and it immediately made sense...
2008-07-28
1,447 reads
I just leaned today that Glenn Berry has had his MVP award renewedfor another year. If you have not read...
2008-07-27
1,330 reads
It's downright common these days to download programs as ISO images, but XP doesn't have a native viewer for them....
2008-07-27
1,711 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