Free ebooks
From Barnes and Noble. You can get them on a Nook, Blackberry, iPhone/Ipad, or PC. They are offering a few...
2010-05-17
957 reads
From Barnes and Noble. You can get them on a Nook, Blackberry, iPhone/Ipad, or PC. They are offering a few...
2010-05-17
957 reads
There has been quite a debate going on at SQLServerCentral about a DBA journeyman certification. There are a couple good...
2010-05-17
963 reads
Paul Randal (@PaulRandal) started this chain of blog posts with his post, What 5 Things Should SQL Server Get Rid...
2010-05-17
795 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-17
408 reads
On Thursday I presented ‘Building a Comprehensive Professional Development Plan’ to the PASS Professional Development Chapter (#PASSProfDev on Twitter) via...
2010-05-17
722 reads
Yea, it's FREE, it's NoN-Stop, it's 24 hours of PASS! Many of the bloggers have wrote about 24 Hrs of...
2010-05-17
571 reads
SQL Server Reporting Services R2 – Publishing Report Parts
SQL Server Reporting Services R2 (SSRS) allows report developers to not only publish...
2010-05-16
4,197 reads
Introduction to Memory configuration Yesterday I was discussion with one of my friend on memory management and internals to expertise in...
2010-05-16
698 reads
Study Tips for the SQL MCM Exams
I met the new rotation of the SQL Server Certified Master program on Friday....
2010-05-16
2,170 reads
If you’ve ever read Spider-Man or spent any sort of time around the Marvel Universe (movies included) you’ll have no...
2010-05-15
659 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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