SQL Server 2008 SP1 Cumulative Update 8 Released
Microsoft has releasedSQL Server 2008 SP1 CU8 (Build 2775). There is no corresponding CU for the RTM branch of SQL...
2010-05-18
1,317 reads
Microsoft has releasedSQL Server 2008 SP1 CU8 (Build 2775). There is no corresponding CU for the RTM branch of SQL...
2010-05-18
1,317 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-18
433 reads
Every day for the next couple of weeks, I aim to highlight one of SQL Server 2008’s new features, simply...
2010-05-18
457 reads
I liked Android, I really did, and I thought my G1 was the best phone I’d had to date when...
2010-05-18
824 reads
Tomorrow kicks off the second 24 hours of PASS event. 24 consecutive 1 hour sessions presented around the globe by...
2010-05-18
694 reads
I struggled with the title for this one. One of the thoughts I had was that I believe in being...
2010-05-18
688 reads
One of the more interesting and valuable features in SQL Server 2008 R2 Enterprise Edition (and Datacenter Edition) is data...
2010-05-17
1,248 reads
One of the more interesting and valuable features in SQL Server 2008 R2 Enterprise Edition (and Datacenter Edition) is data...
2010-05-17
499 reads
Welcome to PowerShell Week at SQL University. For regulars at SQLvariant, SQL University is something Jorge Segarra organized to get...
2010-05-17
1,067 reads
Next Monday, I shall be driving the Smart down to Burlington, VT, again to visit Roman Rehak's Vermont SQL Server...
2010-05-17
648 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