there are 1000 reasons to celebrate
As many of you know, I created a facebook group named 'Living For SQL Server' couple of months back.
SQL Server...
2013-08-05
1,397 reads
As many of you know, I created a facebook group named 'Living For SQL Server' couple of months back.
SQL Server...
2013-08-05
1,397 reads
Guidance is hard.
Seriously, you’d think it would be easy. You’d think you say things like, don’t shrink your database, most...
2013-08-05
2,337 reads
I recently needed to figure out how to embed Flash streaming video in a blog post. LiveWriter does Youtube ok...
2013-08-05
580 reads
I’ll be doing my PCI for the SQL DBA presentation on August 8th at 1 pm Eastern for the PASS...
2013-08-05
807 reads
There are several ways to create a custom navigation control in SharePoint. In the below image you can see the...
2013-08-05
952 reads
When it comes to ETL, I’m a pessimist. Until proven otherwise, I assume that all data is bad, all connections...
2013-08-05
2,074 reads
Once a year, just before the annual PASS Summit, there is a promotional event called 24 Hours of PASS. The...
2013-08-05
450 reads
There are a lot of ways to monitor AG, sql server errorlog, window event log, cluster log......, here I list...
2013-08-04
6,577 reads
As the head of the planning committee for SQL Saturday Baton Rouge this year, I had the distinct pleasure of...
2013-08-04
810 reads
Today I spoke at the second St. Louis SQL Saturday - SQL Saturday #236 in St. Louis. This year it was...
2013-08-03
547 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