What Happens in Vegas…
…Need not Stay in Vegas
Coming to Las Vegas in 2012 is an event many have been waiting for. Those that...
2011-09-14
752 reads
…Need not Stay in Vegas
Coming to Las Vegas in 2012 is an event many have been waiting for. Those that...
2011-09-14
752 reads
…Need not Stay in Vegas Coming to Las Vegas in 2012 is an event many have been waiting for. Those that have been waiting for this event are the...
2011-09-14
14 reads
I’m about eight weeks into my current project and while I’m certain I don’t know it all, I’m finally at...
2011-09-13
544 reads
This post is part of the series discussing the new Analytic functions in SQL Server “Denali”, CTP3.
Analytic Functions in SQL...
2011-09-13
3,440 reads
?This post is the first post in a series discussing the new Analytic functions in SQL Server “Denali”, CTP3, and...
2011-09-13
1,001 reads
The topic for T-SQL Tuesday is Data Presentation. Powershell to Excel is a a good way to presenting data, and...
2011-09-13
3,291 reads
If you are going to be in Kalamazoo this weekend and don’t have anything planned. Because, yeah, that happens. Or...
2011-09-13
449 reads
A developer rushes up to you and asks "can you tell me the last time this stored procedure was executed?"....
2011-09-13
1,151 reads
We have all been in a situation where we had to get the last day of the month with T-SQL....
2011-09-13
5,786 reads
Tuesday is upon us. It also happens to be the second Tuesday of the month and you know what that...
2011-09-13
683 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