Defensive Database Programming Chapter 01
Today I am finally getting around to the review of the first chapter as promised. I talked about the book...
2010-06-07
806 reads
Today I am finally getting around to the review of the first chapter as promised. I talked about the book...
2010-06-07
806 reads
This is one of my favorite technologies for SQL Server 2008 R2. This session was from Torsten Grabs, the program...
2010-06-07
2,120 reads
Sorting results in a tabular style report is a common request from business users. Sometimes, they want to see the...
2010-06-07
853 reads
One of the nice unplanned parts of the trip was walking out the front door of the hotel to realize...
2010-06-07
549 reads
Checkin at TechEd was fast, people were moving through very quickly. Photo ID required, get your badge, and then down...
2010-06-07
317 reads
This is just a reminder that this month’s Professional Development virtual chapter meeting we have MVP, PASS Board member, and...
2010-06-07
414 reads
You need consistent, reliable data. You want data that you can trust.
This is usually data about your transactions, slowly changing...
2010-06-07
566 reads
Flew out of Orlando Sunday morning via Southwest. It was my first time flying SW, I usually go with whoever...
2010-06-07
525 reads
It’s a zoo.
Once again wifi sucks, sitting in the keynote room, unable to join the wireless network and get a...
2010-06-07
356 reads
I recently installed a new SQL Server 2008 instance on a brand new Windows 2008 R2. When I tried to...
2010-06-07
647 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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