Advent of Code Contest
I saw the post from Steve Jones about the Advent of Code contest and decided to take a look. The first...
2015-12-18
665 reads
I saw the post from Steve Jones about the Advent of Code contest and decided to take a look. The first...
2015-12-18
665 reads
It’s Monday and time for this week’s blog and twitter round-up for last week. If you haven’t already, follow me...
2015-12-18
320 reads
The new Star Wars film opens today, and while I won’t see it then, perhaps I’ll get to it early...
2015-12-18
632 reads
The hardest presentations I’ve ever given in my life were not to large audiences or in big rooms. They weren’t...
2015-12-18
457 reads
In last post tip #122, We discussed Merge transformation. Now in this tip, we are going to discuss Merge Join....
2015-12-31 (first published: 2015-12-18)
2,558 reads
Poor storage performance continues to be the largest pain point with enterprise Database Administrators in today’s virtual world. However, it...
2015-12-17
1,087 reads
I recently was tasked with this ticket:
Please add new login Domain\Bob to server MyServer. Grant the login the same permissions...
2015-12-17
2,191 reads
Have you ever seen the error below in your SQL Server log shortly after startup? You’ll actually see two of...
2015-12-29 (first published: 2015-12-17)
1,577 reads
Hi Guys, When you generate a script to create a Stored Procedure, below three statements are generate by default. SET ANSI_NULLS on SET NOCOUNT on SET QUOTED_IDENTIFIER on Why do we...
2015-12-17
42 reads
Hi Guys,
When you generate a script to create a Stored Procedure, below three statements are generate by default.
SET ANSI_NULLS on
SET NOCOUNT on
SET...
2015-12-30 (first published: 2015-12-17)
10,289 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