Give SQL Server 2008 R2 CTP a Quick Try for Free
You have probably heard that the SQL Server 2008 R2 CTP is available, but you may not have given it...
2009-11-08
418 reads
You have probably heard that the SQL Server 2008 R2 CTP is available, but you may not have given it...
2009-11-08
418 reads
I decided to do a little performance testing on some common SSIS “Tricks” that increase speed and effectiveness of SSIS...
2009-11-07
2,785 reads
I had another chance last week to answer an email follow up question from the session Brian and I gave...
2009-11-07
856 reads
I have decided to make a short series of blogs about possible interview questions to help you prepare for an...
2009-11-07
1,954 reads
This is just a starting point for you to prepare for your interview so make sure not to limit yourself...
2009-11-07
2,329 reads
Last week I wrote a set of Advanced SSIS Interview Questions. Here are the answers I came up for these. ...
2009-11-07
2,014 reads
This is part 1 of my 29 part series called Better Know A SSIS Transform. Hopefully you will find the...
2009-11-07
744 reads
This is part 2 of my 29 part series called Better Know A SSIS Transform. Hopefully you will find the...
2009-11-07
1,514 reads
I presented a 1 hr session at Tampa Code Camp 2009: PowerShell for Developers In this sesssion we will look...
2009-11-07
657 reads
Ars Technica has a good post up showing that Windows 7, (which has been out for two weeks) has already...
2009-11-07
1,460 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