T-SQL Tuesday 19 Disasters and Recovery
This post is my contribution to T-SQL Tuesday, hosted this month by Allen Kin (blog | twitter).
A first step in any disaster recovery...
2011-06-14
1,478 reads
This post is my contribution to T-SQL Tuesday, hosted this month by Allen Kin (blog | twitter).
A first step in any disaster recovery...
2011-06-14
1,478 reads
When I heard Allen Kinsel’s (aka @sqlinsaneo|Twitter) Invitation to T-SQL Tuesday #19 – Disasters & Recovery, for some reason, I read it...
2011-06-14
1,595 reads
After posting on twitter last week that I needed something to write a blog post about my good friend Christian...
2011-06-14
853 reads
When bulding solid T-SQL solutions, it is often necessary to implement some level of error handling. One of the most...
2011-06-14
1,287 reads
/*
When you are having to extract just part of a string in TSQL, there are a number of techniques you...
2011-06-14
2,246 reads
Bluntly put, this is something that you always want to be taking advantage of.
As a Database Administrator I’m always on...
2011-06-13
665 reads
Well it’s been an exciting couple of weeks leading up to this course. We have tweaked what we could in...
2011-06-13
635 reads
I am very exicted to be speaking at the San Antonio PASS chapter SALSSA! It’s been way to long and...
2011-06-13
608 reads
For many Analysis Services developers building dimensions with many attributes and hierarchies is something that comes as second nature to...
2011-06-13
5,899 reads
A Fuzzy Lookup Task in SSIS that I was working on was bombing out, and I had a heck of...
2011-06-13
1,688 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