SQL Server 2017 – DMF – sys.dm_db_log_info
The release of Microsoft SQL Server 2017 brought a lot of very interesting new features. One of them is the...
2017-06-12
980 reads
The release of Microsoft SQL Server 2017 brought a lot of very interesting new features. One of them is the...
2017-06-12
980 reads
A few weeks ago I was looking at a query and got tripped up by the network and my own forgetfulness. It was a pretty simple query with a...
2017-06-12
9 reads
2017-06-11
1,403 reads
Imagine a world where one of the software giants releases their brand new operating system and a new application architecture...
2017-06-09
1,600 reads
Exciting day today as I’m presenting my first webinar on SQL Server & Containers in the GroupBy June conference! There’s a...
2017-06-09
463 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to secondary.
Fairly straightforward task, just one needs to take...
2017-06-09
20 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to secondary.
Fairly straightforward task, just one needs to take...
2017-06-09
18 reads
Continuing on the series on SQL Azure Databases - Active Secondary, this post will explore the task of failing over to...
2017-06-09
424 reads
In this post I’ll point you to some options to sync SQL logins and then I’ll demo my favorite option...
2017-06-08
83 reads
In this post I’ll point you to some options to sync SQL logins and then I’ll demo my favorite option...
2017-06-08
683 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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