Three Events that Brought Me Here
Paul Randal started the latest community chain blog, What three events brought you here?, and I was tagged by Steve...
2010-01-19
639 reads
Paul Randal started the latest community chain blog, What three events brought you here?, and I was tagged by Steve...
2010-01-19
639 reads
I’ve been thinking a lot lately about how to be more effective at collaborating, usually in the context of a...
2010-01-19
683 reads
In a day and age when information abounds and social networking is the only way to communicate (a bit of...
2010-01-19
536 reads
Take care of the site, behave, and respect each other.
I'm off for a week in St. Martin, a belated honeymoon...
2010-01-18
733 reads
Another one of the DBA bloggers games of tag is occurring. I’ve been asked by Tom LaRock to answer Paul...
2010-01-18
754 reads
I had a hardware issue this past weekend on one of my database servers where I am running SQL Server...
2010-01-18
1,547 reads
Buck Woody recently asked a question; how do you design a database. He outlined the process he followed and asked...
2010-01-18
1,920 reads
It seems to me that over the last year or so that there has been an explosion in the use...
2010-01-18
651 reads
Paul Randal started a meme about three life changing events that brought him to where he is today. Brent Ozar...
2010-01-18
3,130 reads
I was tagged
by SQL Rockstar, aka Tom LaRock, after this
thread was started by Paul Randal-not-Paul-Tripp (I wonder if...
2010-01-18
2,067 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...
WhatsApp CS 628218520154 Jl. Pegangsaan Timur No.1, Cikini, Kec. Menteng, Kota Jakarta Pusat, Daerah...
WhatsApp CS 628218520154 Jl. Pintu Air Raya No.36 Q, RT.6/RW.1, Ps. Baru, Kecamatan Sawah...
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