Free T-SQL Training - SQL Lunch #25 (Transact-SQL Development and Deployment)
Join SQL Server MVP, Andy Leonard, tomorrow on the SQL Lunch to learn some snappy tips and tricks on Transact-SQL...
2010-07-13
632 reads
Join SQL Server MVP, Andy Leonard, tomorrow on the SQL Lunch to learn some snappy tips and tricks on Transact-SQL...
2010-07-13
632 reads
One of the great things about working with SQL Server is the opportunity to be involved in our fantastic SQL...
2010-07-13
585 reads
The July PASSMN meeting is is coming up next week. If you’ve not registered now’s a great time to get...
2010-07-13
699 reads
T-SQL Tuesday #008: Tips for Giving a Good Interview for the New DBA
Welcome to another exciting episode of T-SQL...
2010-07-13
1,185 reads
Our regular monthly meeting is tonight featuring David Pless from Microsoft. Here are some notes about his presentation:
This discussion will...
2010-07-13
234 reads
Our regular monthly meeting is tonight featuring David Pless from Microsoft. Here are some notes about his presentation:
This discussion will...
2010-07-13
219 reads
OPASS will be holding it’s July meeting this evening from 6pm – 8:30pm at 225 S. Westmonte Drive, Altamonte Springs, FL. ...
2010-07-13
432 reads
It’s time for another T-SQL Tuesday, the brainchild of Adam Machanic (Blog|@AdamMachanic) of SQLBlog.com. This time we have a SQLServerCentral...
2010-07-13
873 reads
This months TSQL2sday is being hosted by Robert Davies of MCM and Microsoft fame, you can find his post here....
2010-07-13
802 reads
I have a great job. Actually it’s a fantastic job for me. I have flexible hours, I can work almost...
2010-07-13
372 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