How do I rename a column?
Everyone makes mistakes right? And sometimes you create an object and decide later that you messed up and need to...
2016-04-18
476 reads
Everyone makes mistakes right? And sometimes you create an object and decide later that you messed up and need to...
2016-04-18
476 reads
I ran into an interesting problem early this month. I was spinning up an Azure VM with SQL Server 2016...
2016-04-18
563 reads
Continuation from the previous 81 parts, the whole series can be found at http://www.nikoport.com/columnstore/.
Previously, I have blogged about about the...
2016-04-16
626 reads
Thanks for attending my session on window functions in TSQL. I hope you learned something you can take back and...
2016-04-16
470 reads
Microsoft announced SQL Server 2016 Release Candidate 3 Evaluations
Benefits of SQL Server 2016 Release candidate 3:
Enhanced in-memory performance provide up...
2016-04-16
171 reads
I have been really busy lately with articles, podcasts and so forth. Lately I have been working on 2 public...
2016-04-16
156 reads
?????
(“MARR-hah-bah”, Arabic: Hello)
This year takes me to yet another part of the world:
I have been invited to speak at THE...
2016-04-15
553 reads
2016-04-15
456 reads
Brief Description
Temporal tables allow automated change tracking of a table directly in to a history table which can be queried...
2016-04-15
84 reads
By Steve Bolton
…………Since I’m teaching myself as I go in this series of self-tutorials, I often have only a vague...
2016-04-25 (first published: 2016-04-15)
1,677 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