SQL Saturday #486 Richmond – A Window Into Your Data
Thanks for attending my session on window functions in TSQL. I hope you learned something you can take back and...
2016-03-19
546 reads
Thanks for attending my session on window functions in TSQL. I hope you learned something you can take back and...
2016-03-19
546 reads
Quick snippet I threw together to help with failing over synchronized databases to the other server in bulk. No way...
2016-03-18
846 reads
Ran into an issue with the “Preview New Reporting Portal” link on a fresh install of 2016 giving me a...
2016-03-18
447 reads
This turned out to be quite a challenge. I couldn’t find anything that made this very clean and straight forward...
2016-03-18
419 reads
the problem
An issue with SQL Server 2012 SP3 was identified that impacted EF4/5 due to additional datatypes in the dll....
2016-03-18
7,501 reads
If you want to create a TFS query that would identify work items that have changed, but were not changed...
2016-03-18
425 reads
This will be no surprise to those who have been working with SQL Server for a long time, but it...
2016-03-18
744 reads
You may have heard that SQL Server Management Studio (SSMS) is now available as a stand-alone installation package outside of...
2016-03-18
720 reads
I listened to most of the town hall today. The main topic was the just voted on changes to the...
2016-03-18
600 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2016-03-17
576 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 628218520153 ITC ROXY MAS, Jl. Kh Hasyim Ashari No.125 Basement 13, RW.8,...
WhatsApp CS 628218520153 Jl. Sukarjo Wiryopranoto No.28 C, RT.1/RW.1, Kb. Klp., Kecamatan Gambir, Kota...
WhatsApp CS 628218520153 Jl. KH Fachrudin 36 Blok D/23, Kp. Bali, Kecamatan Tanah Abang,...
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