Chennai SQL Server User Group Looking For Sponsors
Chennai SQL Server Group (CSSUG), one of the most active UG in India planning to conduct major SQL Server event (Q2 this...
2013-03-08
1,653 reads
Chennai SQL Server Group (CSSUG), one of the most active UG in India planning to conduct major SQL Server event (Q2 this...
2013-03-08
1,653 reads
This time tomorrow morning I will be on my feet starting to deliver a 50 minute session at SQL Saturday...
2013-03-08
885 reads
Transaction Log in SQL server records all operation on database.This recoring depends on Recovery Model selected for database.You can find...
2013-03-08
647 reads
We had a cooperative relational database design exercise at the office last week as part of our regular department "Lunch...
2013-03-08
1,242 reads
In my earlier post, we have discussed about Data,GAM,SGAMand PFS pages. In this post, let us try to understand about...
2013-03-07
7,868 reads
I have been using Microsoft’s Master Data Services (MDS) on a daily basis for the last 8 months. I also...
2013-03-07
3,138 reads
In yesterdays duplicate index blog post, I mentioned that there would be an update to the index analysis stored procedure...
2013-03-07
724 reads
But We’ve Never Had a Disaster Before!
This week, some of my Twitter followers were kind enough to chime in on...
2013-03-07
704 reads
This weekend is SQL Saturday #187 in Richmond, VA. Today’s a travel day for me, as I head out early...
2013-03-07
814 reads
Reading about the motherboard choices took a while. Because I had already decided on a CPU, the Intel I7 I...
2013-03-07
788 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