Why Wont SQL Server Use My Filtered Index?
As with most of my posts of late all examples here are using the StackOverflow SQL Server database that can...
2018-10-02
122 reads
As with most of my posts of late all examples here are using the StackOverflow SQL Server database that can...
2018-10-02
122 reads
As with most of my posts of late all examples here are using the StackOverflow SQL Server database that can...
2018-10-02
240 reads
With the hurricane bearing down on the east coast of the United States last week, making sure you have a...
2018-10-01 (first published: 2018-09-21)
1,315 reads
After the 2018 Microsoft Ignite event, Microsoft announced a free trial of Azure Cosmos DB. For those who are eager to check out Cosmos DB, this is a great...
2018-10-01
25 reads
Today I’d like to talk about Azure integration services that you can leverage within the platform. Integration services allow data...
2018-10-01 (first published: 2018-09-20)
1,479 reads
Today I’d like to talk about integration with Azure Logic Apps and how they can help your organization to do...
2018-10-01
306 reads
Every now and again, someone asks if I write romance novels. Why? Well, let’s ask Bing who Kendra Little is…. To clarify, I am not married, I have dogs...
2018-10-01
20 reads
At Redgate, we build tools to help you build software in the entire DevOps cycle. In fact, I love this...
2018-10-01
307 reads
When you created your home lab last September you probably installed a version of SQL 2016. Well, SQL 2017 was...
2018-10-01
313 reads
Picture the scene….. DBA Doug is sitting in his cubicle minding his own business when App Dev Allister gives him...
2018-09-29
147 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