Awards for SQL Heroism
Motivational time again!
Have you ever worked on a project where someone was seeking their moment in the sun for an...
2010-09-06
243 reads
Motivational time again!
Have you ever worked on a project where someone was seeking their moment in the sun for an...
2010-09-06
243 reads
Motivational time again!
Sometimes things cannot be explained. Like this guy in the picture. I think he’s gunning for his own...
2010-09-06
341 reads
Motivational time again!
Today I want to talk about being lazy with your data. More likely than not, it’s not your...
2010-09-06
173 reads
This is one of those posts that has little to do with SQL Server and more to do with helping...
2010-09-06
567 reads
Hey folks,
It's whitepaper Wednesday again and this week we're talking about "Introducing Microsoft StreamInsight" by: Torsten Grabs, Roman Schindlauer, Ramkumar...
2010-09-06
857 reads
In a previous blog entry (Inconsistent NullIf behaviour), Jeff Moden and Dan Halliday(twitter) both made a very similar observation.
When executing...
2010-09-06
560 reads
This is the 2nd in the series of evaluations I have carried out on Idera’s SQL Server Toolbox. The first...
2010-09-06
1,333 reads
The sessions have been selected and we have posted the schedule for SQL Saturday #48 - Columbia, SC. A huge thank...
2010-09-06
626 reads
This question just came up in the forums, and it highlights how difficult it can be to try to optimize...
2010-09-06
2,164 reads
I know I was one of the more vocal ones these past two years when the set of nominees were...
2010-09-06
883 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