SQL Nexus Wrap Up
This past week, I presented a preconference session and regular session at this year’s SQL Nexus conference in Copenhagen, Denmark. I...
2017-05-05
488 reads
This past week, I presented a preconference session and regular session at this year’s SQL Nexus conference in Copenhagen, Denmark. I...
2017-05-05
488 reads
A couple of weeks ago we had a small contest here to pick a skill for Alexa. The entries were...
2017-05-05
482 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-05
103 reads
In this video I talk about Trace Flag 1117 and how it was designed to help keep data file growth...
2017-05-16 (first published: 2017-05-05)
1,342 reads
I made the front page of dbatools, as a part of the community that is supporting this project. Along with...
2017-05-05
612 reads
So you’re using encryption in SQL Server, but you’ve discovered that the expiration date of a certificate is expiring. What...
2017-05-17 (first published: 2017-05-05)
5,684 reads
11:30pm on a Saturday night, and the pager went off…
Error: 5901, Severity: 16, State: 1.One or more recovery units belonging...
2017-05-05
1,841 reads
This topic has come up several times recently, so I feel the need to blog on it. As the person...
2017-05-05
1,153 reads
It was a crazy week for Power BI. There were quite a lot of announcements, so I’ll try to wrap...
2017-05-05
1,383 reads
Into May and a big couple of events this week in SQL Nexus and the Powershell Conference EU 2017, looking...
2017-05-05
477 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