Access Annoyance – Bit Columns
Here’s another one that I’ve run into when linking to a SQL Server table that has a bit column. Maybe...
2010-07-13
334 reads
Here’s another one that I’ve run into when linking to a SQL Server table that has a bit column. Maybe...
2010-07-13
334 reads
Pretty exciting stuff gang! I have an approved session and an alternate for the PASS Summit in November. The SQL...
2010-07-13
342 reads
In August, I will be presenting at the following events:
DevLINK, August 5-7, 2010
How and When to Use Indexed ViewsIdentifying SQL...
2010-07-12
564 reads
I get a lot of emails from people who read my blog, books, articles, and from people who have attended...
2010-07-12
512 reads
Originally published in the Database Weekly newsletter.
I used to work at a large organization ($8 billion in revenues) as a...
2010-07-12
414 reads
With all the MSDN give away contests, I decided to add another. Here are the official rules for the twitter...
2010-07-12
565 reads
UPDATE: Additional Microsoft MVPs have joined the project and we will now be selecting at least two (2) now three...
2010-07-12
471 reads
This is something we had to do again recently and its improved our performance and query speeds on one particular system....
2010-07-12
955 reads
I’ve been scouring my notes (old & new), wading through all my previous research and unearthing advice, tips & tricks that have...
2010-07-12
383 reads
TSQL Tuesday is fast upon us once again. In fact, in my time zone, it is just a day away.
This...
2010-07-12
584 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