Promoted to TempDB by SQLRockstar
I noticed today that fellow SQL Server MVP Thomas LaRock (blog | twitter) had updated his SQL Server blog rankings, and...
2010-06-21
731 reads
I noticed today that fellow SQL Server MVP Thomas LaRock (blog | twitter) had updated his SQL Server blog rankings, and...
2010-06-21
731 reads
I was recently asked if it was possible to name an excel tab based on a page in a reporting...
2010-06-21
2,724 reads
In March of this year the PASS Board of Directors began kicking around the idea of holding some kind of...
2010-06-21
883 reads
As will happen from time to time, we’ve had two changes on the schedule, wanted to make sure everyone catches...
2010-06-21
488 reads
2010-06-21
1,654 reads
This Thursday gone, (June 18th) I went to a hotel near Heathrow airport in London for what was titled a...
2010-06-21
809 reads
Some of the best extensions for Integration Services (and SQL Server itself) are found in what Microsoft has released as...
2010-06-21
2,076 reads
Someone posted a note recently asking about how to detect the changes in a sequence. Say you have a table...
2010-06-21
4,140 reads
On Tuesday June 22nd 9 PM Eastern I”m presenting ETL with PowerShell for PASS AppDev VC—a virtual chapter of Professional...
2010-06-20
1,029 reads
I often begrudge a 5am start to travel anywhere, let alone to SQL events but this was a trip definitely...
2010-06-19
527 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...
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
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