Importing a SQL Server 2008 Analysis Services Database
Have you ever lost your project file for a SQL Server Analysis Services database? There is a great option to...
2009-11-03
1,057 reads
Have you ever lost your project file for a SQL Server Analysis Services database? There is a great option to...
2009-11-03
1,057 reads
There are many different ways to manipulate dates when working with them in SSIS. Many great examples have been posted...
2009-11-03
596 reads
One of the most common problems facing a DBA or developer in troubleshooting performance is identifying what processes, and by...
2009-11-03
442 reads
It’s very exciting to be involved with the SQL Saturday here in South Florida. There are already so many great...
2009-11-03
344 reads
Recently I was working with client and they were discussing the pet peeves of some of the new intellisense features...
2009-11-03
404 reads
I was working with a team of developers this week who were having the hardest time finding the keystroke to...
2009-11-03
335 reads
I get a lot of requests for explanations about the different concepts and the easiest way to demo partitioning in...
2009-11-03
363 reads
Ok, so I can’t promise you’ll be smooth by the end of this entry, but I can promise you’ll be...
2009-11-03
246 reads
With the advent of SQL Server 2005 and 2008, mail in the database engine has changed dramatically. Previously you had...
2009-11-03
1,438 reads
Greg emailed me a great question from my week of warehousing webinar the other day. We were discussing disk performance...
2009-11-03
275 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