SQL Server Tips and Tricks
In this article I will be listing the tips and tricks to work like
a Pro.
So let's get started –
Important keyboard...
2017-02-20
325 reads
In this article I will be listing the tips and tricks to work like
a Pro.
So let's get started –
Important keyboard...
2017-02-20
325 reads
If you are dealing with a SQL Server which got a lot of memory, you may encounter the out of...
2017-02-20
1,299 reads
As some readers may know, I am a regular attendee on SQL Cruise s for 8 years now. SQLCruise is...
2017-02-19
631 reads
To add to an already amazing year, recently I was named a VMware vExpert for 2017. I’m honored, humbled, and...
2017-02-19
161 reads
One of my client vCenter Server fails to start as below shown error in event logs.Could not allocate space for...
2017-02-17
655 reads
This is a different spin on the top three vendor rankings visualized in Power BI. According to the placement of...
2017-02-17
821 reads
From time to time, I see posts in forums from people complaining about how much some consultants charge. A really...
2017-02-17
621 reads
Is it me or is February dragging? Anyway, mixed in with this crazy week I’ve been reading: –
SQL Server vs...
2017-02-17
349 reads
It is an open secret that in SQL Server, we can “create a system object” by using an undocumented stored...
2017-02-17
839 reads
Recently I published an open-source course/workshop to learn Power BI Desktop. Fellow MVP Dan English (blog | twitter) gave me the...
2017-02-16
489 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