Tip: Use System Views to Compare Column Datatypes
Let’s say that you have a staging table, that then loads to a destination table in the same database. If...
2010-09-13
560 reads
Let’s say that you have a staging table, that then loads to a destination table in the same database. If...
2010-09-13
560 reads
SQL Saturday: All the COOL kids are doing it!
It’s only twelve days until SQL Saturday #52 in Colorado! I’ll be...
2010-09-13
716 reads
I had the pleasure of making my second annual September visit to the Space Coast SQL Server User Group in...
2010-09-13
343 reads
I will be speaking at SQL Saturday #52 - Colorado in a little less than two weeks. I am giving my...
2010-09-13
1,082 reads
I ran across a great blog titled: Post 300 or why all developers should be blogging. The reasons given in...
2010-09-13
1,226 reads
It’s back with a slightly different format this time, 28 hours of seminars delivered over two days, and it’s all...
2010-09-13
577 reads
In this installment of the Getting Drive Info series (Part 1, Part 2, Part 3), SSIS will be used to collect and save the drive information. SSIS provides multiple...
2010-09-13
22 reads
In this installment of the Getting Drive Info series (Part 1, Part 2, Part 3), SSIS will be used to...
2010-09-13
1,354 reads
10 years ago IT professionals considered database technology “mature” and analysts were preparing to...
2010-09-13
57 reads
10 years ago IT professionals considered database technology “mature” and analysts were preparing to slide it into a commodity status… But on the Exabyte era, we depend on databases...
2010-09-13
50 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