Speakers: Rehearsals Help
Today was a rehearsal day. Actually the last 2-3 days of work have been split between rehearsing talks that I’m...
2013-06-18
840 reads
Today was a rehearsal day. Actually the last 2-3 days of work have been split between rehearsing talks that I’m...
2013-06-18
840 reads
Inventory is a vital information,whether you’re a consultant or an in-house DBA, you need to have a reliable inventory of...
2013-06-18
1,090 reads
There is nothing more annoying to me in my profession than getting calls and emails from recruiters who are looking...
2013-06-18
1,466 reads
Capturing information is useless unless you know how to use it. Here’s what I use to get the most out...
2013-06-18
1,395 reads
Often we may need to update a column in a table based of another column in another table.
In SQL Server...
2013-06-18
1,162 reads
To those that don’t know me “Natural Born Killers (The Series)” sounds like a very strange choice for a SQL...
2013-06-21 (first published: 2013-06-18)
2,903 reads
Microsoft has released two new Cumulative Updates for SQL Server 2008 R2. One is for SQL Server 2008 R2 Service...
2013-06-17
1,645 reads
Since I bought a Nexus 7 (two of them, I broke the first one) I’ve been interested to see if...
2013-06-17
626 reads
Recently I was in a small coffee/sandwich shop for early morning coffee and while waiting watched one of the employees...
2013-06-17
758 reads
Recently I ordered a Paolini Pocket Rule from Woodpecker. It is one of a series of OneTime Tools they’ve produced...
2013-06-17
876 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