SQL Server in Azure
There are two flavors of SQL Server in Azure: one is the traditional SQL Server platform hosted in Azure virtual machines,...
2015-05-09
988 reads
There are two flavors of SQL Server in Azure: one is the traditional SQL Server platform hosted in Azure virtual machines,...
2015-05-09
988 reads
Only my second SQL Saturday of the year (wow), but SQL Saturday #393 is next week in Redmond, WA. This...
2015-05-08
756 reads
All you who wants to pursue professional life as SQL SERVER DBA, its always hard to crack the interview . But...
2015-05-08
1,513 reads
A few weeks ago Bala Narasimhan from PernixData and I recorded a short conversation where we discussed the tips and tricks...
2015-05-08
384 reads
Reading Time: 1 minutesIt is official! The next version of SQL Server will be SQL...
The post 002 – SQL Server 2016...
2015-05-08
672 reads
I got my annual two emails from the PASS organization with the notification to update my profile to vote. I’m...
2015-05-07
907 reads
Bala Narasimhan, Vice President of Products from PernixData, and I recently sat down and discussed the convergence of infrastructure, SQL Server,...
2015-05-07
373 reads
I’m continuing on with the Blogger’s challenge in this post.
Turning the Problem Around
In the last post, I wrote about limitations...
2015-05-22 (first published: 2015-05-07)
4,290 reads
It is that time of the year when PASS starts a process to help update memberships and clean up duplicate...
2015-05-07
448 reads
I have always liked the drawings done by MC Escher. Looking at his drawings has always forced me to look...
2015-05-07
426 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