SQL Server 2016 Service Pack 1 Changes Everything
Earlier today, Microsoft announced the release of Service Pack 1 (SP1) for SQL Server 2016. Pay close attention to this...
2016-11-16
482 reads
Earlier today, Microsoft announced the release of Service Pack 1 (SP1) for SQL Server 2016. Pay close attention to this...
2016-11-16
482 reads
Most of the DBCC commands return their results as textual output, even if you have SSMS configured to return result...
2016-11-16
464 reads
Welcome back to another episode of This Week In Data! If you missed our previous episodes, you can watch them...
2016-11-16
513 reads
With the release of the most epic Service Pack 1 for SQL Server 2016, the biggest attention of everyone should...
2016-11-16
842 reads
This is the most important blog post about SQL Server that I have ever written. As far as I am...
2016-11-16
572 reads
One of the things I’ve been wanting to do is dig more into the command line automation cmdlets from the...
2016-11-16
683 reads
SQLSkills is an amazing resource for the SQL Server community. Between their blogs, white papers, and the SQLSkills Insider emails...
2016-11-16
679 reads
This is just a quick look. I plan on diving into this in the future more, as I'm still working...
2016-11-16
237 reads
Containers are a hot topic at the moment, there seems to be a new article about them on Hacker News...
2016-11-16
657 reads
This is just a quick look. I plan on diving into this in the future more, as I'm still working...
2016-11-16
3,389 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