SQL Saturday 97 starts in 7 hours
I flew into Austin Texas today and got to spend time with a lot of great people. The journey started...
2011-10-01
529 reads
I flew into Austin Texas today and got to spend time with a lot of great people. The journey started...
2011-10-01
529 reads
Wow! Can't believe today is the last day of September! Fall, here we come! Although Summer is over, Autumn is...
2011-09-30
1,984 reads
Data mining is a great way to help your company make decisions and predict future values. The Data Mining Algorithms...
2011-09-30
8,711 reads
Red Gate Software will be providing a free, full-day SQL Server event called SQL in the City in Los Angeles,...
2011-09-30
1,420 reads
Introduction
I am sure many times we all might have come across situations where we need to search/find a string value...
2011-09-30
6,354 reads
Quick update for all of you!
Hey there everyone! We are going to have some awesome surprises, new software features...
2011-09-30
1,565 reads
Microsoft has made available SQL Server appliances and reference architectures that allow customers to deploy data warehouse (DW), business intelligence (BI) and...
2011-09-30
3,785 reads
Just wanted to push out an announcement that the Baton Rouge SQL Server User Group has a new website.
www.brssug.org
We've...
2011-09-30
1,509 reads
Presentation Files: 10 Things All BI Administrators Should Know
I sooooo remember this sign!
I was very excited to get to present...
2011-09-30
2,010 reads
As I mentioned in the introductory post, I’m summarizing posts from previous years in the the past week. Some posts...
2011-09-30
1,383 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