SQL Prompt Prevents Stupidity
I upgraded my SQL Prompt recently, mostly as a habit. The team led by David and Aaron are always adding...
2016-06-17 (first published: 2016-06-09)
2,508 reads
I upgraded my SQL Prompt recently, mostly as a habit. The team led by David and Aaron are always adding...
2016-06-17 (first published: 2016-06-09)
2,508 reads
Recently, a member of the community lamented that folks weren’t willing to provide an email address for free training. This...
2016-06-09
452 reads
It’s a wonderfully busy speaking month! I’m going to be remotely speaking for the Edmonton SQL Server User Group at 5:00pm...
2016-06-09
412 reads
Very, very recently I did my first Proof Of Concept (POC) with SQL Server 2016. At an actual client of...
2016-06-14 (first published: 2016-06-09)
4,751 reads
One of the things that is needed in quite a few functions is the object_id of a particular table/view/procedure/function in...
2016-06-08
1,159 reads
Sapiens: A Brief History of Humankind, by Yuval Harari, made it on my reading list after hearing about Mark Zuckerberg’s list of books everyone should read. And since then,...
2016-06-08
16 reads
Sapiens: A Brief History of Humankind, by Yuval Harari, made it on my reading list after hearing about Mark Zuckerberg’s...
2016-06-08
839 reads
I did a post the other day on comparing two tables. It was meant as a general overview but I...
2016-06-08
489 reads
Since we released Minion Reindex over a year and a half ago, we’ve had a ton of wonderful feedback, praise, questions, and...
2016-06-07
633 reads
I’ve completed both of my presentations at the 2016 Techno Security and Forensics Investigation Conference (#technosecurity). If you were able...
2016-06-07
525 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