PowerShell Script to Remove Old Backups
A Twitter user asked for a script to remove old backups, and I had one I built back in February,...
2010-06-24
1,135 reads
A Twitter user asked for a script to remove old backups, and I had one I built back in February,...
2010-06-24
1,135 reads
Today I did a webinar on MDX solutions. For those of you interested you can grab the slides here and...
2010-06-24
1,215 reads
I don’t travel a lot, but with the success of SQL Saturday, I find myself heading out on the road...
2010-06-24
1,330 reads
Today we’ll try to finish up by looking at a couple of the semi-interesting parts of the code in this...
2010-06-24
649 reads
Nominations opened today and will run through July 21st. Whether you’re planning to be a candidate or not, I hope...
2010-06-24
557 reads
I’ve been experimenting with stories in the editorial, experiences of my own that are amusing and have some kind of...
2010-06-24
937 reads
Since the release of SQL Server 2005, Microsoft has been using what they call an Incremental Servicing Model for SQL...
2010-06-23
2,200 reads
Microsoft has released SQL Server 2008 R2 RTM Cumulative Update 2. It became available for download today, and you can...
2010-06-23
544 reads
I received an unexpected but certainly not unwelcome email last night letting me know that I've been selected to present...
2010-06-23
419 reads
Life in the event leader fast lane, finally got the signs for our upcoming #49 here in Orlando. In past...
2010-06-23
547 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