Holiday gift for your favorite SQL Server Professional
If you have been putting off ordering your copy of "SQL Server MVP Deep Dives", now is your chance to...
2009-12-23
499 reads
If you have been putting off ordering your copy of "SQL Server MVP Deep Dives", now is your chance to...
2009-12-23
499 reads
I noticed a post recently from Bru Medishetty on Striped Backups. I commented, but thought I should explain a little...
2009-12-23
3,713 reads
I’m perusing things I’ve in the ‘blog about someday’ category of my list and found this one – a very nice...
2009-12-22
598 reads
Recently I tried to deploy a report to a Report Server on my laptop, which is running Windows 7 Ultimate....
2009-12-22
519 reads
I’ve been somewhat light in my blogging of late. Unfortunately, I just haven’t hit any interesting or difficult problems lately...
2009-12-22
534 reads
I have read several articles about deploying SSIS packages.Most focus on using the deployment wizard or simply copying the files...
2009-12-22
2,057 reads
I realized that I haven’t written enough recently on this blog myself, being occupied with other projects for work. Recently...
2009-12-22
745 reads
In Sql Server, both functions and stored procedures can be defined as the logically grouping of Sql statements formed to...
2009-12-22
2,185 reads
This is a reprint of chapter 11 of my book, How to Become an Exceptional DBA, 2nd Edition, which is...
2009-12-21
735 reads
I was reminded of this again recently during a class when the students exchanged cards and one student didn’t have...
2009-12-21
628 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. Suryopranoto No.40, RT.12/RW.7, Petojo Utara, Kecamatan Gambir, Kota Jakarta Pusat,...
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