Security Cameras in the Neighborhood
I live in a pleasant, calm, middle class neighborhood. Not much crime here, at most the rare break-in or vandalism,...
2013-07-19
729 reads
I live in a pleasant, calm, middle class neighborhood. Not much crime here, at most the rare break-in or vandalism,...
2013-07-19
729 reads
I’ve been a big fan of nuclear energy ever since I worked at a power plant. Before that I was...
2013-07-19
1,000 reads
Yesterday I mentioned using the Google Webmaster Tools to identify some bad URL’s here on the blog. I decided to...
2013-07-19
639 reads
My friend Boris Hristov (Blog | Twitter) continues his Google Hangouts initiative, and this week he invited me to talk about...
2013-07-19
3,216 reads
The webinar audio and slides/demo scripts are up for the presentation I did for the PASS Security virtual chapter.
PASS Security...
2013-07-19
764 reads
Scenario You have just completed setting up a new development database server for a new project. After that, everyone in...
2013-07-26 (first published: 2013-07-19)
1,832 reads
This past Tuesday, I delivered a presentation for Pragmatic WorksTraining on the T’s. The session I delivered was 5 Ways to...
2013-07-18
759 reads
I’ve always been a fan of the feeling when I find an old blog post that’s got just the information...
2013-07-18
683 reads
Introduction
You likely have heard about data warehousing, but are unsure exactly what it is and if your company needs one....
2013-07-25 (first published: 2013-07-18)
5,986 reads
If you have a set of columns inside your table that you want to allow nulls in, however if one...
2013-07-18
1,242 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