Upgrading the SSC SQL Servers: Part 1
While I have been working for Red Gate Software for nearly three years, it was only until this year that...
2009-12-05
764 reads
While I have been working for Red Gate Software for nearly three years, it was only until this year that...
2009-12-05
764 reads
Endgadget recently had a post up about the Micron Real SSD C300 family of SATA 6Gbps SSDs that will be...
2009-12-04
712 reads
According to this C|Net report, New York state wants someone to build wind farms in the great lakes and purchase...
2009-12-04
633 reads
The latest Phil Factor challenge is now active here . The prize has now been increased to $100...(read more)
2009-12-04
434 reads
So this week I attended a preview for Visual Studio 2010. In addition to database development, I do ASP.NET development...
2009-12-04
2,146 reads
My laptop died recently, actually died completely, unable to boot. The hard drive was fine, and I managed to stick...
2009-12-04
488 reads
Several months ago I received a copy of the Apress book, Pro SQL Server 2008 Administration (Amazon)by Ken Simmons (@kensimmons),...
2009-12-04
986 reads
I haven’t had to write a Question of the Day in a few months now and I have mixed feelings...
2009-12-04
433 reads
I was recently looking for some publicly available data for a demo. Many times, the complicated solutions we deliver for...
2009-12-04
389 reads
Yesterday was the first time I gave a presentation to a group of professional who knows SQL Server. I was...
2009-12-04
809 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