A great free tool for SQL Server...
Another free tool for SQL Server that supports SQL Server 2008/2005/2000, comes from xSQL Software, the Script Executor Commnity Edition,...
2010-09-03
1,194 reads
Another free tool for SQL Server that supports SQL Server 2008/2005/2000, comes from xSQL Software, the Script Executor Commnity Edition,...
2010-09-03
1,194 reads
When I arrived at the Hutton Hotel in Nashville for the PASS Board meeting recently they couldn’t find my reservation....
2010-09-03
532 reads
No, it’s not a new device. This time it’s my son, Delaney, who has been reading on my old iPhone...
2010-09-03
360 reads
If you are interested in watching some high quality SQL Server content from the comfort and convenience of your own...
2010-09-03
743 reads
For a long time I haven't been active member at SSC, so I'm coming back again, saying once again Hello...
2010-09-03
613 reads
Hi friends
Thank you very much for supporting this blog. It really give me lots of encouragement to share my knowledge...
2010-09-02
774 reads
Pirate Code: They're more like guidelines really...
The last few weeks we’ve watched the drama unfold in regards to the PASS...
2010-09-02
1,314 reads
A few short bloopers, just for a few friends that fly planes.
YouTube Link (in case the embed fails)
2010-09-02
535 reads
Idera SQL ToolBox
(http://www.idera.com/Products/SQL-toolbox/)
The datasheet for ToolBox – asks the question – Want an Easy way to save money? No manager is going...
2010-09-02
2,221 reads
Voting began yesterday with ballots mailed to qualified members. More information can be found here, including contact info for Hannes...
2010-09-02
262 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