Stop Asking and Start Making Decisions Today
Ever have one of those days where no matter how hard you try you just can’t seem to make any...
2011-04-25
698 reads
Ever have one of those days where no matter how hard you try you just can’t seem to make any...
2011-04-25
698 reads
SQL Server Essentials Part 1: A look at the key responsibility of a DBA and why it is so vital.
2011-04-22 (first published: 2009-09-14)
24,233 reads
There are many different paths you can travel on the journey to success. There is no precise route that everyone...
2011-04-18
1,439 reads
This weekend saw the 8th SQLBits conference take place amidst glorious British sunshine by the sea in Brighton.
For those unable...
2011-04-10
893 reads
Your customers expectations are their primary measure of your success. How well are you managing them?
You’re reading The DBAs Guide...
2011-04-04
2,065 reads
Have you set the bar high enough to ensure your success?
You’re reading Taking It To The Next Level, day 5 of 5...
2011-03-31
1,436 reads
Your customers expectations are their primary measure of your success. How well are you managing them?
You’re reading The DBAs Guide...
2011-03-30
2,129 reads
One of the most undervalued skills that an individual can possess is the ability to listen. Are you really hearing...
2011-03-29
1,644 reads
This is the most important and essential first step for a DBA on the journey to providing outstanding customer service....
2011-03-28
860 reads
Outstanding Customer Service in 5 days
Your success as a Data Professional is directly dependant to the quality of service you...
2011-03-27
670 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