Using a gMSA with SQL Server
As you already know, SQL Server runs as a service. And services require a service account to run under. While...
2018-03-02 (first published: 2018-02-19)
17,370 reads
As you already know, SQL Server runs as a service. And services require a service account to run under. While...
2018-03-02 (first published: 2018-02-19)
17,370 reads
Do you ever find yourself working on a query and realize that you need just a bit more real estate...
2018-02-28
601 reads
Back to the SQL Server Basics with Wayne
Connecting to a SQL Server instance is one of the first things that...
2018-02-19 (first published: 2018-02-07)
2,896 reads
Interleaved Execution allows SQL Server's query optimizer to get accurate cardinality estimates in places where it couldn't before.
2018-02-08
1,210 reads
Explore Batch Mode Memory Grant Feedback that was introduced in SQL Server 2017
2018-02-01
1,062 reads
When you run a query in SSMS, you are probably aware that the status bar contains many pieces of information...
2018-02-01
544 reads
SSMS provides an Activity Monitor, a process that displays various information about what all is going on with the instance....
2018-01-31
800 reads
SSMS has a lot of reports available for you to use. Most of the reports in SSMS are off of...
2018-01-30
544 reads
If you are presenting with SSMS, then there are some extra steps that you need to take. These steps are...
2018-01-29
874 reads
Over the last several weeks, we have been making several changes to various settings in SSMS. Now that you have...
2018-01-28
400 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