Getting Started with Database DevOps, DLM, and New Tools
Next Tuesday is the next installment of our DLM series from Redgate. I’m off the hook, with Grant and Arneh...
2016-07-13
579 reads
Next Tuesday is the next installment of our DLM series from Redgate. I’m off the hook, with Grant and Arneh...
2016-07-13
579 reads
The Azure SQL Data Warehouse (SQL DW), that I blogged about here, is now generally available. Here is the official...
2016-07-13
598 reads
I heard the news this week, and I’m still sad. Karla Landrum is leaving PASS after five years of acting...
2016-07-13
500 reads
This week I’m teaching Learning Tree’s course 2108 SQL Server Database Administration in the LEC in London. Following on from last weeks...
2016-07-13
386 reads
Hi friends, in this blog post I will tell you how we can retrieve the SQL plan from the cache....
2016-07-13
665 reads
Well I finally accomplished a goal of mine– that being to complete the training for SQL Server Performance Tuning and...
2016-07-12
197 reads
It’s time for another round of the global blog party we call T-SQL Tuesday. This is T-SQL Tuesday #80 and...
2016-07-12
777 reads
In this module you will learn how to use the Enhanced Scatter Power BI Custom Visual. This new-and-improved scatter chart...
2016-07-12
1,152 reads
This month’s T-SQL Tuesday (#080) is being hosted by Chris Yates (B|T) (Happy B-day Chris!). He decided that this month’s...
2016-07-12
530 reads
Overview
While working with SQL server, users may encounters numerous errors in different stages. These errors creates huddles in SQL transactions...
2016-07-12
929 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