SQL Server Command Timeout – Application Timeout – Attention
When you use ODBC or SqlClient to access data from SQL Server, by default the query will be cancelled if there is no response from the server within a...
2016-05-09
52 reads
When you use ODBC or SqlClient to access data from SQL Server, by default the query will be cancelled if there is no response from the server within a...
2016-05-09
52 reads
We will get the brief idea about undocumented procedure sp_MSforeachtable of the Master database.
sp_MSforeachtable can be used to loop through all...
2016-05-09
11,647 reads
It’s Monday morning (er afternoon) and it’s time for this week’s blog and twitter round-up for last week. If you...
2016-05-09
495 reads
I was talking a bit with a friend at SQLSaturday Jacksonville and realized I needed to write down a thought...
2016-05-09
1,133 reads
Everything ran smooth The site reminds me of Orlando – limited space for sponsors, but offset by the other advantages (free...
2016-05-09
530 reads
Looking forward to the BRSSUG/BRPBIUG meeting this Wednesday night May 11, I'll be giving a presentation all about SQL 2016!
This...
2016-05-09
377 reads
Hi friends, continuing from the previous post in this post we will learn how to add the blocking predicate to...
2016-05-09
1,018 reads
Wanted to just post my latest versions of my Date and Time Dimension scripts. It has been a couple years...
2016-05-09
401 reads
Last week I attended SQLBits 2016 in Liverpool. I had such a great time, and I would like to share...
2016-05-08
166 reads
Last week I attended SQLBits 2016 in Liverpool. I had such a great time, and I would like to share...
2016-05-08
1,235 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