A "New Guy" Joins Our Team
It's a great day for me and Moulding and Millwork (the company I work for). A few weeks back, I let you all know that I'd been given the...
2011-10-03
11 reads
It's a great day for me and Moulding and Millwork (the company I work for). A few weeks back, I let you all know that I'd been given the...
2011-10-03
11 reads
It's a great day for me and Moulding and Millwork (the company I work for). A few weeks back, I let you all know that I'd been given the...
2011-10-03
13 reads
It’s the first Monday of the October and it’s time to do a monthly checkup. If you are like me,...
2011-10-03
585 reads
When you create a SQL Server login (with SQL authentication), you have the option of enforcing password policies from Windows...
2011-10-03
6,227 reads
In our day-to-day activities, browsing the web is one of the most important aspects of our job. Whether researching for...
2011-10-03
817 reads
No, I’m not talking about hubs and switches. I’m talking about people. Networking is a major component of an event...
2011-10-03
1,154 reads
It?s never easy to beat up on a friend. Sometimes they have it coming though!.
The Webinar smackdown is over....
2011-10-03
785 reads
It's a great day for me and Moulding and Millwork (the company I work for). A few weeks back, I...
2011-10-03
697 reads
Happy October!
Last month I announced a cool new SQL challenge to simply share your SQL Server Performance story with us,...
2011-10-03
709 reads
According to BOL , a database in SUSPECT state is : “At least the primary filegroup is suspect and may be damaged....
2011-10-03
1,217 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