How to Get Started with Always Encrypted for Beginners Part 2
In this post we will pick up where we left off in Part 1, if you haven’t read that please...
2017-12-29 (first published: 2017-12-13)
1,745 reads
In this post we will pick up where we left off in Part 1, if you haven’t read that please...
2017-12-29 (first published: 2017-12-13)
1,745 reads
One of the hardest things you can do as a blogger is to come up with a post topic. Do...
2017-12-20
353 reads
Encryption has always been intriguing to me but seemed like it could be a very complex process to set up....
2017-11-29
1,323 reads
This week is Thanksgiving in the United States, so I thought it fitting to write a quick blog on what...
2017-11-22
413 reads
What is the GO statement and why is it so important to use? When do I have to use it?...
2017-11-15
1,129 reads
I ran across a client the other day that had these Backup and Recovery options set like the picture below...
2017-11-08
876 reads
One of the things I’ve been able to implement to help with performance is changing from Update Statistics Synchronous to...
2017-11-07 (first published: 2017-10-25)
1,998 reads
Are you using your Model Database to its full potential?
I am finding more and more that Database Admins are not...
2017-10-30
747 reads
Okay, here is a pet peeve of mine, I think every stored procedure, function, view etc. should all contain a...
2017-10-18
502 reads
This year will be my 6thPASS Summit that I will have attended. Some people have asked me why I still...
2017-10-11
329 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