July 2012 – Monthly SQL Server Checklist
The year is half over and for many of us, specifically those in the United States, it’s a tricky week...
2012-07-03
894 reads
The year is half over and for many of us, specifically those in the United States, it’s a tricky week...
2012-07-03
894 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-07-02
1,059 reads
This post is part of a blog series which focuses on translating compatibility views in SQL Server to their respective...
2012-07-01
1,638 reads
When SQL Server 2005 launched, it included a slew of dynamic management objects (DMOs) that were meant to replace the...
2012-07-01
1,114 reads
Think about that last SQL statement that you wrote. Did you originally write it? Are you sure you wrote it? ...
2012-06-22
1,297 reads
With the release of the PASS Summit 2012 schedule, I’m pleased to announce that I have been selected to present...
2012-06-21
839 reads
Have you ever been told that you should use NOLOCK? I have, and its usually been with OLTP systems where...
2012-06-18
1,993 reads
Guess, what? I’ve thrown my hat in to the elections for the Nomination Committee for PASS. That means that I...
2012-06-14
843 reads
Do you know a DBA that saves the day time and again? Or one that doesn’t need to save the...
2012-06-06
986 reads
It’s the first Monday of the month, have you checked your servers out? Do you know that everything with your...
2012-06-08 (first published: 2012-06-04)
2,447 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