Adios
If all goes well, by the time you read this on Thanksgiving I’ll be up in the mountains of Colorado....
2009-11-26
778 reads
If all goes well, by the time you read this on Thanksgiving I’ll be up in the mountains of Colorado....
2009-11-26
778 reads
I know Thanksgiving has some deeper meanings, but at one level it’s all about the food. Food is a good...
2009-11-25
613 reads
It is said that you should not give direct table access (even select permission) to a user or group. But...
2009-11-25
551 reads
I had to run our weekly conference call this week. My boss is out of the office, but he’s been...
2009-11-25
744 reads
I have noticed that one of the best way to learn about a certain topic is to write an article...
2009-11-25
706 reads
I saw a post recently about the tempdb being overly large and causing issues for a user. The person was...
2009-11-25
2,283 reads
I'm looking over the comments about DBAs and local Administrator rights and I noticed an interesting trend: no one discussed...
2009-11-25
2,608 reads
Here is the latest version of my Diagnostic Information Queries for SQL Server 2008. Running these queries will give you...
2009-11-24
2,447 reads
Earlier this week I posted Part 1 and Part 2, today I want to wrap up by thinking about how...
2009-11-24
571 reads
Virtually all successful DBAs I know put a lot of focus on education, and the best way to make it...
2009-11-24
543 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