Getting Ahead and Getting Involved
I spend a little time on AskSSC (that is the question and answer section on http://www.sqlservercentral.com). Quite often the question...
2011-06-28
884 reads
I spend a little time on AskSSC (that is the question and answer section on http://www.sqlservercentral.com). Quite often the question...
2011-06-28
884 reads
Want to take a few minutes out of your day on to learn a bit more about indexes? On Thursday,...
2011-06-28
893 reads
OK, since this conference in is England, it’s a little harder to get to compared to TechEd. No matter, all...
2011-06-28
879 reads
Continuing to build up our data gathering library we shift our focus to tracking database file growth. This particular procedure...
2011-06-28
567 reads
Our call for speakers for #85 will be open about another 10 days, and then Bradley Ball can jump into...
2011-06-28
618 reads
The PASS Summit is only a few short months away. But before that happens there is an important deadline fast...
2011-06-28
681 reads
Someone was asking if the HASHBYTES function was a good one to use in T-SQL as far as performance goes.....
2011-06-28
15,132 reads
It is known that you cannot get inserted identity values using OUTPUT clause when inserting to view which has instead...
2011-06-28
1,851 reads
We all know how easy it is to see how much CPU power is consumed by the SQL Server process,...
2011-06-28
1,676 reads
It has been more than two months since I blogged. I have been blogging in my Organization internal blogging site on Management...
2011-06-28
3,814 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