They Took Our Name!!
I’ve heard imitation is a form of flattery, and I guess that’s true. Today I got an up close and...
2010-02-05
376 reads
I’ve heard imitation is a form of flattery, and I guess that’s true. Today I got an up close and...
2010-02-05
376 reads
I was really excited when my PASS DVDs arrived last week. I had purchased the DVDs (or maybe CDs) back...
2010-02-05
955 reads
A couple weeks back I asked for reading suggestions, and I got a bunch! Here’s the list so far:
Wizard’s First...
2010-02-05
436 reads
It is a good news for developers! Microsoft published the Training Kit for SQL Server 2008 R2.
The content of...
2010-02-05
595 reads
I’d like to share a networking success story. Last year, I blogged about my experience at the PASS Summit of...
2010-02-05
1,191 reads
Today I ran across Paul Randal’s latest post showing how to find open transactions and such. This is a nice...
2010-02-05
543 reads
Let me show you another free tool for SQL Server that is very usefull and thanks from the companies that...
2010-02-05
1,139 reads
I had a little bit of excitement with one of my production servers couple of days ago, that I thought...
2010-02-04
3,203 reads
The default trace in SQL Server is something I have been experimenting with lately. It is a feature included in...
2010-02-04
3,888 reads
Our next meeting is February 9, 2010, We’ve got Ronald Dameron coming to speak this month on Database Hardening using...
2010-02-04
328 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