What I Will Do For You in 2012
Many of you have first hand experience of our phenomenal sql community (affectionately labelled the #sqlfamily).
Your first encounter with it...
2012-01-09
603 reads
Many of you have first hand experience of our phenomenal sql community (affectionately labelled the #sqlfamily).
Your first encounter with it...
2012-01-09
603 reads
The first week following on from the Christmas break is a very hectic one for us Data Professionals.
Your customers are...
2012-01-03
633 reads
That’s easy, because Brent Ozar (Blog|Twitter) challenged me to……
Finding time to keep up with awesome blog content can be tough....
2011-12-15
659 reads
Volume 1 was packed full of knowledge and a very welcome edition to my bookshelf! With the bar already set...
2011-12-09
850 reads
What is it that makes the perfect role for a Database Administrator?
Well I can’t tell you that because you and...
2011-12-07
1,313 reads
What is a brilliant gift at Christmas for a DBA? I mean apart from having the day off…..
For those new...
2011-12-05
595 reads
Are you 100% satisfied with your current job? Of course not!
When given serious consideration most people will agree that there...
2011-11-28
937 reads
Do not let the phrase “out of sight, out of mind” apply to you.
As Data Professionals a lot of us...
2011-11-01
1,145 reads
Return of the King?
As if the original week of action planned was not enough SQLRelay just got Bigger!
Three brand new...
2011-09-07
755 reads
A reader wrote in to me last weekend regarding the MCTS Exam 70-432 (SQL Server 2008, Implementation and Maintenance).
Hi John,
I...
2011-09-05
2,402 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