Thanksgiving Review
Last week I posted about planning to cook some for Thanksgiving, thought this week I’d share some of how it...
2009-12-03
477 reads
Last week I posted about planning to cook some for Thanksgiving, thought this week I’d share some of how it...
2009-12-03
477 reads
Everyone who wants to know about how transaction replication works and how to improve the performance of transaction replication must...
2009-12-03
2,154 reads
Let's face it, when it comes to computers there's a 100% certainty that something is going to break eventually. Maybe...
2009-12-03
595 reads
From a Forrester blog: Ten eReader and eBook predictions for 2010.
It’s an interesting read, and I tend to agree with...
2009-12-03
2,239 reads
The conversation on local administrators having rights in SQL Server has proven to be interesting and at times entertaining. My...
2009-12-03
2,534 reads
I traveled quite a bit in 2009, hitting 3 SQL Saturdays, 5 user groups and a few other events during...
2009-12-03
427 reads
We have covered the Hard Disk and the System Bus. This time around we will cover disk controllers and host...
2009-12-03
6,485 reads
In the previous post in this series, I discussed the obstacles to implementing electronic health data systems. Because of these...
2009-12-03
1,404 reads
Pinal Dave had a helpful post a few days ago about how to setup and configure SQL Azure. You will...
2009-12-03
1,383 reads
This is part three in a series of blog posts that will help you build an arsenal of MDX calculations...
2009-12-03
1,778 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