Connectify
It’s a wired world. You’d think by this point, most major hotels, at least those costing upwards of $100/night, would...
2010-08-27
1,050 reads
It’s a wired world. You’d think by this point, most major hotels, at least those costing upwards of $100/night, would...
2010-08-27
1,050 reads
If any of you follow me on SQLServerCentral.com, then you know I recently started a new job. Well, after two...
2010-08-26
1,709 reads
Last month I sat down with Blain Barton and TechNet Edge in an interview (Blain Barton Interviews Raymond James Chad...
2010-08-26
742 reads
If you haven’t messed with them yet, you should know that CTEs (Common Table Expressions) - new in SQL Server 2005...
2010-08-26
1,306 reads
I was honored to be asked to do the keynote for SQL Saturday #28 in Baton Rouge recently. It’s taken...
2010-08-26
871 reads
There are a lot of times when the decision matters less than who makes it. A common if simplified example...
2010-08-26
1,030 reads
I’m late, I suck, but here’s some things I started in Baton Rouge and am just now getting out.
First, I’ll...
2010-08-26
954 reads
Did you ever set a goal and then sort of … demolish it without realizing it? That has happened this year....
2010-08-26
347 reads
Sometimes we need to generate the INSERT script in sql server. When, we need to insert bulk of data from...
2010-08-26
3,268 reads
I think the shirt says it all
If you’ve been under a rock the last few weeks you may not know...
2010-08-25
532 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