Modifying the “New Query” template.
TLDR; Search for and modify the sqlfile.sql file.
During a recent T-SQL Tuesday Boris Hristov (b/t) taught me about SET NOEXEC...
2015-06-23 (first published: 2015-06-11)
3,115 reads
TLDR; Search for and modify the sqlfile.sql file.
During a recent T-SQL Tuesday Boris Hristov (b/t) taught me about SET NOEXEC...
2015-06-23 (first published: 2015-06-11)
3,115 reads
June 13, 2015 - SQLSat379: Just wanted to make mention of the upcoming SQLSaturday#379 down in South Florida, it will be...
2015-06-11
1,015 reads
After a data centre power outage a decision was made to switch the start up mode of a bunch of...
2015-06-19 (first published: 2015-06-11)
1,893 reads
Originally posted on Blog Home for MSSQLDUDE:
Not really a new part to my multi-part series on System Center for...
2015-06-11
530 reads
Thanks every one for loving me, joining me & providing you extreme support.
I am very happy to share that we reach...
2015-06-11
596 reads
In the on-premises world, when we install a SQL Server on our own servers, we decide on SQL Version (2012, 2014….), Edition (Standard, Enterprise,...
2015-06-10
23,153 reads
Its pretty often that you have to sit down at a SQL Server and need sort out what the backup situation is. One of the first things that I...
2015-06-10
19 reads
Its pretty often that you have to sit down at a SQL Server and need sort out what the backup...
2015-06-10
1,493 reads
This was strange. I noticed a new icon in the taskbar today. When I hovered over it, I saw this:
I...
2015-06-10
905 reads
It’s time for this week’s weekly blog and twitter round-up for last week, it would be better timed if I...
2015-06-10
601 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