I’m A Part Of Things Greater Than Myself, The POSSE Is Here.
Something Is Missing…
Some of you know I have a deep passion for the SQL Server community. I’ve always been extremely...
2011-08-03
838 reads
Something Is Missing…
Some of you know I have a deep passion for the SQL Server community. I’ve always been extremely...
2011-08-03
838 reads
Since today its official, I'm presenting 2 sessions at the SQLbits conference in Liverpool
(http://www.sqlbits.com) from September 30 –
October 1. Here...
2011-08-03
868 reads
PASS just announced today the next occurrence of 24 Hours of PASS (24HOP), which is called the Summit Preview version....
2011-08-03
775 reads
I grew up immersed in security. My father was a US Marine and going on and off base meant... security....
2011-08-03
1,235 reads
Do you need to perfect your SQL Server skills? Would you like to get 24 hours of free SQL Server...
2011-08-03
602 reads
SQL Saturday in South Florida is quickly approaching in just 2 short weeks. As usual, if you are in the...
2011-08-03
661 reads
SQL Server 2011 “Denali” introduces couple of new procedures which enable you to read query metadata without executing it. Previous...
2011-08-03
1,025 reads
When attempting to browse an Analysis Services cube you may be presented with the following error message:
DefaultMember(Measures,Measures) (1, 1) The...
2011-08-03
1,004 reads
Written by Ian Treasure
Gethyn recently posted on deleting from a view. He used a common situation where several tables are...
2011-08-03
10,152 reads
First day of the month and first Monday of the month. The list is coming out a bit late due...
2011-08-02
803 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