Create Indexes from the Missing Indexes DMV
Glenn Berry (Blog) writes a lot of queries to extract information from the system DMV’s. One of them in particular...
2010-05-24
2,422 reads
Glenn Berry (Blog) writes a lot of queries to extract information from the system DMV’s. One of them in particular...
2010-05-24
2,422 reads
After asking members about where the PASS Summit should be located and then deciding to keep it in Seattle for...
2010-05-24
808 reads
One of the things I heard recently from someone was that they clicked some of the links in the newsletter...
2010-05-24
690 reads
I’ve just finished handing over the source code for all the SQLSaturday related items after finishing up a couple minor...
2010-05-24
494 reads
This is long overdue and goes out to my buddies from the SSAS Class I taught late last year. Two...
2010-05-24
413 reads
Well, for those of you who attended, SQL Saturday Jacksonville, was, well I’ll say it, EPIC. Between all the great...
2010-05-24
312 reads
I have posted several entries lately about events that I’ve been attending, speaking and listening at and one of the...
2010-05-24
702 reads
I realized this morning that I will be participating in three SQL Events this week and I want to share...
2010-05-23
587 reads
What would get over 400 techies to give up a beautiful Saturday and spend the day inside learning about SQL...
2010-05-23
1,028 reads
I heard of EverNote sporadically in the Twitter community and from my boss. I had checked it out and it seemed like another place to store notes/tips/ideas. I thought to...
2010-05-23
15 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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