SSIS: Conditional File Processing in a ForEach Loop
I’ve fielded a number of requests recently asking how to interrogate a file within SSIS and change the processing rules...
2010-08-23
23,023 reads
I’ve fielded a number of requests recently asking how to interrogate a file within SSIS and change the processing rules...
2010-08-23
23,023 reads
I went to host the Red Gate SQL Source Control webinar recently and had a snag. I downloaded the GoToWebinar...
2010-08-23
847 reads
We started the event with a speaker/volunteer dinner at the home of Kevin Kline (former PASS President, current MVP,and all...
2010-08-23
663 reads
In this installment of the drive info series we will gather the drive information via a DTS package. Part 1...
2010-08-23
1,112 reads
After spending a week in Tampa, FL at a client site I've had some time to unwind and reflect back...
2010-08-23
961 reads
Thanks to everyone who attended my presentation at SQL Saturday #51 - Nashville. I apologize for going long and not getting...
2010-08-22
776 reads
“The information age is an idea that the current era will be characterized by the ability of...
2010-08-22
52 reads
“The information age is an idea that the current era will be characterized by the ability of individuals to transfer information freely, and to have instant access to knowledge...
2010-08-22
24 reads
Last weekend I went to Baton Rouge (by way of New Orleans) to attend and speak at the second annual...
2010-08-21
1,081 reads
Tracy Hamlin (Twitter) has been voted as the 2010 Exceptional DBA of the Year by the SQL Server community. The...
2010-08-20
1,059 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