SQL Server : Understanding Differential Change Map (DCM) Page and Differential Backups
In our earlier posts, we have discussed about different types of pages.Data Pages, GAM and SGAM,PFS page and IAM page. In this...
2013-07-23
2,248 reads
In our earlier posts, we have discussed about different types of pages.Data Pages, GAM and SGAM,PFS page and IAM page. In this...
2013-07-23
2,248 reads
Open Source, ON WINDOWS! I’m still stunned in this day and age that people pay obscene amounts of money on tools that are easily replaced in most cases with...
2013-07-23
36 reads
Open Source, ON WINDOWS!
I’m still stunned in this day and age that people pay obscene amounts of money on tools...
2013-07-23
1,894 reads
What looks to be the biggest and best new feature in SQL Server 2014 is called the “In-memory OLTP Engine”,...
2013-07-23
2,085 reads
I’ve got a couple days off, starting today after my webinar on Preparing for When Disaster Strikes. I’ve got some...
2013-07-23
892 reads
I learned something from you – that was something someone said to me at the end of a recent consulting engagement....
2013-07-23
757 reads
Every day I consider myself extremely fortunate to be in a profession that I really enjoy, as there’s always something...
2013-07-23
797 reads
(Be sure to checkout the SQLpassion Online Academy, where you get High-Quality SQL Server Trainings with Instant Access!)
Today I have...
2013-07-23
1,285 reads
We were three: A DBA, a developer and a tester.
Our mission: To develop an ongoing process that will transfer one...
2013-07-23
1,542 reads
UPDATED -- Jul 3, 2015 -- To verify database exists, per comments by Konstantinos Katsoridis. Thanks for finding the bug!
In my recent adventures...
2013-07-23
1,665 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