Command and Control of the Data Center
As I went walking last night, I listened to two podcasts from RunAs Radio of interviews of Michael Manos and...
2008-05-16
1,092 reads
As I went walking last night, I listened to two podcasts from RunAs Radio of interviews of Michael Manos and...
2008-05-16
1,092 reads
While this will remain a primarily technical blog, one thing I'm going to try and add is each Saturday I'll...
2008-05-16
744 reads
Recently I signed up for the FlyClear program (www.flyclear.com), a registered traveler program. Over the past year I've been travelling...
2008-05-15
725 reads
Tuesday, May 27, 2008
Speaker: SQL Server MVP Brian Knight
The Midlands PASS chapter will hold a special meeting on...
2008-05-15
640 reads
This year I've been lucky enough to have been offered some prizes or promotions from a few different companies for...
2008-05-15
1,210 reads
I've grown to like the presenter view in Powerpoint 2007; let's me navigate easily, and more important, lets me easily...
2008-05-13
464 reads
Some very interesting responses to my CLR editorial today including some good details that I haven't seen elsewhere. I'm still...
2008-05-13
915 reads
I get busy and usually forget to post when I'm out and about, but for once I've remembered. I'll be...
2008-05-11
463 reads
I wrote these questions thinking about what some basic t-sql statements that I would want to see if I were...
2008-05-10
3,825 reads
I saw that Erland Sommerskag posted a Connect item that asked for a "View Variable" to be added to the...
2008-05-09
1,264 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