A Long Summer Vacation
Based on a bit of luck/happenstance I’ve been able to stretch my summer vacation to two months. I had planned...
2013-07-29
1,287 reads
Based on a bit of luck/happenstance I’ve been able to stretch my summer vacation to two months. I had planned...
2013-07-29
1,287 reads
Psssttt!
Developers. Man, have I got something good for you.
Are your DBAs slowing down your development processes? Are they keeping you...
2013-07-29
1,745 reads
When you find log4net is not writing anything to your logs it can be a pain to debug as obviously...
2013-07-29
156 reads
I will be presenting the session “Building an Effective Data Warehouse Architecture” this Wednesday, July 31st, at 10pm EST for...
2013-07-29
1,169 reads
Weekly round-up of the links that I tweet out number 43. As an introduction, if you follow me on twitter (@StrateSQL), you’ll know...
2013-07-29
1,221 reads
First time event in Cocoa Beach went really well!
Speaker dinner well attended Friday night at Florida’s SeafoodQuite a few...
2013-07-29
761 reads
The site connect.microsoft.com is a wonderful concept: you can provide feedback about the Microsoft products, report bugs and give suggestions...
2013-07-29
716 reads
Have you ever wanted to know how fast one of your core SQL Servers are running, or ever wanted to...
2013-07-29
1,489 reads
Reporting Services 2008 is a very powerful tool for creating reports. It contains many different tools and even allows you...
2013-07-29
732 reads
I’ve had to debug database mail problems several times over the last year or so. Below is a collection of...
2013-07-29
1,415 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