Proper Usage of MAXDOP Setting When Compressing Indexes in SQL Server 2008/2008 R2
I am a pretty big fan of SQL Server Data Compression, especially the enhanced version found in SQL Server 2008...
2010-08-17
2,324 reads
I am a pretty big fan of SQL Server Data Compression, especially the enhanced version found in SQL Server 2008...
2010-08-17
2,324 reads
First, apologies to those of you outside the Dallas-Ft. Worth metro area… I’ve backed off from using my blog as...
2010-08-17
610 reads
Have you ever run into an error and been puzzled as to why that error occurred?
Recently I have been working...
2010-08-17
781 reads
Looking for some free SQL Server training? How about 24 hours of free training offered by some of the top...
2010-08-17
494 reads
Just a quick note that today at 12:30 EST (11:30 CST) I’ll be presenting on Policy-Based Management for SQLLunch. If...
2010-08-17
431 reads
SQLSaturday is coming to Nashville this weekend, Saturday August 21st at 8:00am in the Student Services building of Nashville State...
2010-08-17
319 reads
Piggybacking tangentially off of Tim Mitchell’s (blog, Twitter) SSC editorial Turn a Bad Job into a Good Experience…yesterday I got...
2010-08-17
678 reads
Folks, I have to tell you that this event was great!! It was really well organized, with great speakers. Personally, I...
2010-08-17
633 reads
In Growing PASS Step One: Communication I talked about how I think that PASS could grow by communicating the vision...
2010-08-17
399 reads
Good Morning,
We have an exciting SQL Lunch today. Don’t miss out on Jorge Segarra(Blog)|(Twitter) doing a session on Policy Based...
2010-08-17
197 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