Sql Server - Union and Union All
Union and Union All, both are used to select data from one or more than one tables but still they...
2009-11-17
4,503 reads
Union and Union All, both are used to select data from one or more than one tables but still they...
2009-11-17
4,503 reads
Not everyone has the opportunity to call Microsoft Premier Support. For those who have not yet had this experience, I’ll...
2009-11-17
818 reads
Microsoft has released Cumulative Update 5 for SQL Server 2008 Service Pack 1. You can go here to request the...
2009-11-17
541 reads
We have been using SQL Server 2008 Integrated Full Text Search (iFTS) in Production at NewsGator for a little over...
2009-11-17
965 reads
I have a pretty good administrative system here at SQLServerCentral for managing the site. The upgrades we made in 2007...
2009-11-17
712 reads
SQL Rockstar tells me that unless there are photo’s, it didn’t happen. Brad McGehee published some pictures from DevConnections. See,...
2009-11-17
625 reads
Kimberly Trippposted today about the SQL Server MVP Deep Dives book signing event at PASS on November 4. The PASS...
2009-11-17
666 reads
That’s a Microsoft Tag. I’m not quite sure what exactly to do with it, but here it is. Evidently you’re...
2009-11-17
517 reads
Last week I attended the Dev Connections conference for the first time. It was held in the Mandalay Bay resort...
2009-11-17
801 reads
This past week at the Mandalay Bay Hotel and Convention Center in Las Vegas, November 11-12, SQLServerCentral.Com held its first...
2009-11-17
570 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