Clustered Index and related Interview Questions
Since the day I wrote my first blog. My friends are eagerly waiting for just one topic. The Indexing. I...
2015-09-20
2,037 reads
Since the day I wrote my first blog. My friends are eagerly waiting for just one topic. The Indexing. I...
2015-09-20
2,037 reads
As this blog post is being published David will be delivering his “Putting his Head in the Cloud – Working with...
2015-09-19
559 reads
This weekend we’re going to hit SQL Saturday San Diego for the first time ever! We are the excited. Come and...
2015-09-18
812 reads
Maps are like a way of overloading the data type to expose more meaningful values that relate to the payload data in question. The standard data types can also...
2015-09-18
16 reads
In the last segment, I wrote about the data types for the payload of an event in Extended Events. In that...
2015-09-18
522 reads
5 Enhancements to SQL Runbooks in the Azure Preview Portal
SEPTEMBER 18, 2015
IntroductionRunbooks are your SQL Server Agent for Azure SQL Database. Lately, Microsoft have been making quite a few...
2015-09-18
30 reads
5 Enhancements to SQL Runbooks in the Azure Preview PortalSEPTEMBER 18, 2015
Introduction
Runbooks are your SQL Server Agent for Azure SQL...
2015-09-18
1,037 reads
2015-09-18
12 reads
2015-09-18
7 reads
2015-09-18
18 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