T-SQL Tuesday #73 Invitation – Naughty or Nice?
Hello Dear Reader! This is the first Tuesday of the month and you know what that means. It’s time to announce the T-SQL Tuesday Topic of the month! This...
2015-12-01
22 reads
Hello Dear Reader! This is the first Tuesday of the month and you know what that means. It’s time to announce the T-SQL Tuesday Topic of the month! This...
2015-12-01
22 reads
Hello Dear Reader! This is the first Tuesday of the month and you know what that means. It’s time to...
2015-12-07 (first published: 2015-12-01)
1,732 reads
I’ll be doing a precon for SQLSaturday #461 in Austin on January 29th, 2016 titled “Creating a High Availability and Disaster Recovery...
2015-12-01
486 reads
I got an email recently that notified me that session feedback from the Summit was available for my talk. I’d...
2015-12-01
610 reads
Microsoft Azure is a cloud computing platform and infrastructure, created by Microsoft, for building, deploying and managing applications and services...
2015-12-01
614 reads
You know you want to go on the SQL Cruise. You can. You just have to convince the boss that...
2015-12-01
481 reads
For Summary On Improvements In the Latest Release
Please go through the below link.
Summary On Improvements In SSMS Nov 2015
To Download...
2015-12-01
82 reads
Something that i keep seeing in documentation, in forum code and in real systems is transactions that have names
BEGIN TRANSACTION...
2015-12-04 (first published: 2015-12-01)
5,871 reads
I love working with indexes, and I need to know what’s using them to work on them intelligently. Most of...
2015-12-08 (first published: 2015-12-01)
2,020 reads
Over the Thanksgiving holiday, I read a book entitled The Phoenix Project. This book has been in my Kindle library...
2015-12-04 (first published: 2015-12-01)
1,534 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