My Peformance Story - September Story Contest - Now Let's See Yours!
Happy Monday, ALL! I recently announced that I am hosting an awesome contest this month, sponsored by Safe Peak, that...
2011-09-12
1,318 reads
Happy Monday, ALL! I recently announced that I am hosting an awesome contest this month, sponsored by Safe Peak, that...
2011-09-12
1,318 reads
Some DBA's don't realize that SQL server can perform a database backup that breaks up the files - stripes them - in...
2011-09-12
3,309 reads
Using SSIS to load a flat file into a database is a common use of the tool. This works great...
2011-09-12
4,056 reads
We have a report in SSRS 2008 which calls multiple sub-reports. One of the sub-reports contains a data region (tablix) in...
2011-09-10
2,680 reads
Couple of months back, one of our SSRS 2005 staging server became inaccessible. When we opened the report manager, it...
2011-09-10
4,067 reads
I was having a problem getting the display folder to work for a calculation in SSAS. Turns out, it will...
2011-09-09
1,393 reads
I had an issue this week in Report Manager. I was generating a report (we’ll call it General Widgets Report),...
2011-09-09
876 reads
One of our report server which is SSRS 2008 R2 (10.50.1720.0) started to crash intermittently. The IE failed with Internet...
2011-09-09
3,896 reads
Read on to register for cool events, win an iPad2, be inspired, participate in t-sql tuesday, and more!
It's been an...
2011-09-09
1,606 reads
Are you In Portland, Oregon?
Do you plan to be in Portland on Saturday, October 8th?
Can you be in Portland on...
2011-09-09
511 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