Understanding Keys and Certificates with Always Encrypted
Always Encrypted on SQL 2016 is pretty easy to set up. There’s even a single wizard to guide you through...
2017-06-09 (first published: 2017-05-30)
8,677 reads
Always Encrypted on SQL 2016 is pretty easy to set up. There’s even a single wizard to guide you through...
2017-06-09 (first published: 2017-05-30)
8,677 reads
It's the start of a SQLSat summer for me, with Pensacola this weekend on Saturday June 3, then Houston two...
2017-05-30
552 reads
What Are Filtered Indexes
Filtered indexes are essentially an index with a predicate on them filtering the data that gets stored...
2017-05-30
68 reads
Hi Guys,
Hope everyone is doing well. Last week, I was working on the most exciting task on which any database...
2017-05-30
859 reads
1. What is angular module?
NgModule helps to organize an application into organized blocks of functionality. @NgModule decorator takes metadata that...
2017-05-30
650 reads
Kevin Hill mentioned this idea/series on a SQL community slack channel back in April and I thought it would be a good way to get back to blogging. The timing...
2017-05-30
33 reads
Recently I contributed my thoughts in a new ebook from ScaleArccalled “Industry Perspectives: Upgrading to Modern SQL“. Modernizing the datacenter...
2017-05-29
420 reads
I saw this post from Joel Spolsky lately, noting that Stack Overflow has been helping 1 million developers exit VIM....
2017-05-29
573 reads
I’ve always said that this blog is my way of giving back to the SQL Server community but there is...
2017-05-29
347 reads
For the first time in my career, I’m a Microsoft Certified Trainer (MCT). This title came as a result of my two-year working as a trainer at the Seavus...
2017-05-28
18 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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