Slides & Samples for my SQLdays Sessions
As I have announced in all of my sessions this week in Rosenheim/Germany at the SQLdays
conference can find here the
Slides...
2011-09-29
1,417 reads
As I have announced in all of my sessions this week in Rosenheim/Germany at the SQLdays
conference can find here the
Slides...
2011-09-29
1,417 reads
Previously I wrote a blog on how to do a for each loop to look through each col in an...
2011-09-29
1,261 reads
There is no native function built in to SSIS to get the previous row in the data flow. But with...
2011-09-29
1,775 reads
I made it to Cambridge and actually feel OK. I wonder how I’ll feel tomorrow, but the two day adjustment...
2011-09-29
814 reads
This is something I saw recently, a large chalkboard – like the kind they used to have in schools – on a...
2011-09-29
710 reads
Just had a pleasurable 5 hours watching the Autumn countryside go by on a glorious sunny day (in fact its...
2011-09-28
733 reads
A couple weeks ago a user complained that on one of our development databases, one of the views he was...
2011-09-28
1,648 reads
When you have a disaster, the time that you have to restore service is usually referred to as the RTO...
2011-09-28
1,280 reads
This is post is going to be very simple but it is something I come across ever so often and...
2011-09-28
5,033 reads
The Merge component in SSIS will take two sorted sources and union them while maintaining the original sort order. The...
2011-09-28
1,336 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