Fighting the Flu
Last Monday was my first day back from the PASS Summit, planned for (and was) a slow day, just starting...
2009-11-16
501 reads
Last Monday was my first day back from the PASS Summit, planned for (and was) a slow day, just starting...
2009-11-16
501 reads
When partitioning was first introduced in SQL Server 2005, I thought what a great idea. However, when I started reading...
2009-11-16
2,676 reads
I’ve written a few things about why conferences and events are good, or why it’s valuable for an IT worker...
2009-11-16
718 reads
I’ve been dealing with change control and source code repositories for most of my professional career. While I’ve seen change...
2009-11-16
1,450 reads
Meeting URL: Join Meeting
Click the above Meeting URL around 11:30 AM CST on 11/16/2009 to join the meeting
Date: 11/16/2009
Time: 11:30...
2009-11-16
1,281 reads
New friend David Easley shared two sources for hot sauce that I wasn’t familiar with:
http://www.datilsensation.com/products.shtmlhttp://www.pepperpalace.com/I like some spice here and...
2009-11-15
533 reads
Yesterday, I was able to cause a potential customer to buy a competing product. In fact, according to my tally...
2009-11-15
400 reads
If you need to initialize a mirrored database for SQL Server 2008 Database Mirroring, one of the first things you...
2009-11-14
1,460 reads
Since this was my time visiting Seattle I opted to stay an extra day and take in the sights and...
2009-11-13
597 reads
Although it’s buried on the SQLPASS website, the newest edition of the SQL Server Standard is now available here in...
2009-11-13
541 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