How did I become a DBA
This past Tuesday night I had the honor of speaking to a small group of college students who are all...
2009-11-12
794 reads
This past Tuesday night I had the honor of speaking to a small group of college students who are all...
2009-11-12
794 reads
Thursday started off with a meeting of the SQL Saturday minds over breakfast at Top Pot Donuts a few blocks...
2009-11-12
883 reads
After quite a bit of research, I pulled the trigger on a new HP Envy 15 system last Saturday. This...
2009-11-12
1,966 reads
I’m not going to look back at the keynotes since I blogged about them. If you are interested, you can...
2009-11-12
770 reads
When developing Reporting Services reports that use Analysis Services as a data source you may find that it is difficult...
2009-11-12
731 reads
I think it went off well this year, and it looks like it will be around next year as well....
2009-11-12
892 reads
Despite the down economy, the 2009 PASS Summit attendance was down only 8% compared to the 15% of other conferences...
2009-11-12
792 reads
One feature of Windows 7 that you may not have heard of is Windows XP Mode on Windows Virtual PC....
2009-11-12
1,416 reads
If you are in the Baton Rouge Area stop by and join our user group meeting this evening. The details...
2009-11-11
558 reads
A few weeks ago I was looking for a few branded items, happened to run across drink coasters at 4imprint....
2009-11-11
590 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