Upcoming April speaking engagements
I have a very busy next week in the works! Here are the upcoming speaking engagements that I am working...
2013-04-19
678 reads
I have a very busy next week in the works! Here are the upcoming speaking engagements that I am working...
2013-04-19
678 reads
Both Clustered and Nonclustered Indexes have same physical structure in SQL Server. Both are stored as a B-Tree structure in...
2013-04-19
1,946 reads
The 6th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the...
2013-04-19
1,690 reads
This is an off-topic post for a Friday. With Cardiff City reaching the premier league this week and all the...
2013-04-19
615 reads
If you can establish a connection to a SQL Server, but are having problems logging in to it, you will...
2013-04-30 (first published: 2013-04-18)
2,579 reads
When I first started working with Azure SQL Databases, I wasn’t sure what it would take to backup a database....
2013-04-18
1,812 reads
Dynamic SQL can be helpful, but a pain to debug. I spent hours today working on figuring out why my...
2013-04-18
442 reads
One of the goals early on with SQL Saturday was to spread them far and wide. Andy Warren and I...
2013-04-18
790 reads
There has been lots of speculation in the SQL Server community as to what the official name of the next...
2013-04-18
1,280 reads
I went to the PASS Business Analytics Conference last week, and had an absolute blast. I presented two sessions, and...
2013-04-18
1,187 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