SQL Source Control Early Access Program Open
Managing T-SQL source code has never been easy, and has often been the bane for many T-SQL developers. Later this...
2010-01-28
585 reads
Managing T-SQL source code has never been easy, and has often been the bane for many T-SQL developers. Later this...
2010-01-28
585 reads
If so why? Honestly, I am curious why people may still be running 32-bit versions of SQL Server 2005, 2008,...
2010-01-28
2,913 reads
I’m not sure how this book got on my radar, but it turned out to be fairly interesting. It’s written...
2010-01-28
812 reads
SQLSaturday #40 will be held July 31st, 2010 in Miramar, FL. This is the second annual SQLSaturday organized by Scott...
2010-01-28
611 reads
SQLSaturday #39 will be held April 24, 2010 and is being coordinated by Melissa Demsak and others from the NJ...
2010-01-28
584 reads
In the end, that was what made the difference. I was typing along one night on my spare Acer and...
2010-01-28
869 reads
I’ve been working with SQL Server for 10 years and have worked in production with versions 6.5 – 2005 and used...
2010-01-28
696 reads
One of the most common mistakes made in T-SQL is thinking that these behave identically. I've personally opened up a...
2010-01-28
1,239 reads
Last week while helping someone in the SQLPSX forums having an issue importing modules I suspected they had a CTP...
2010-01-28
832 reads
Red Gate Software has released the 1.0 beta version of SQL Search, a new free SSMS add-in that allows you...
2010-01-28
1,420 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