BIDN.com Launch Today
For those interested in the SQL Server BI space, there is a new online resource launching today. Brian Knight and...
2009-12-01
1,076 reads
For those interested in the SQL Server BI space, there is a new online resource launching today. Brian Knight and...
2009-12-01
1,076 reads
December SQL Server User Group Meeting
Location: At Lamar Advertising
Wednesday, December 2, 2009
6:00 PM - 8:00 PM
Sponsored by: EMCTopic
An Overview of...
2009-12-01
502 reads
SQL Server Reporting Services 2008 introduced several new features. One key feature was the inclusion of the Gauge Controls. I...
2009-12-01
7,791 reads
I was reading Two Minute SQL Server Stumpers a few weeks ago and this qustion still sticks in my head. ...
2009-12-01
593 reads
On the Friday at the end of the Summit we had a 4 hour Board meeting, welcoming new board members...
2009-11-30
1,756 reads
SQL Server Reporting Services 2008 introduced several new features.One key feature was the inclusion of the Gauge Controls.I was recently...
2009-11-30
1,742 reads
It’s official sports fans. Well, it’s been official since last week since Adam Machanic set up the web site. The...
2009-11-30
1,382 reads
I have been involved in the SQL Server community since 2000, and during the past nine years I have seen...
2009-11-30
1,463 reads
It happens, not often, but I do regularly see people talking about their tempdb growing too large. Often that means...
2009-11-30
14,993 reads
It pours.
I come back from 4 days unwired, a bunch of writing done, to a laptop that’s head, a site...
2009-11-30
1,424 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