Getting the Most Out of SQL Server Profiler Using Templates
In case you haven’t discovered this for yourself, SQL Server Profiler is one of the most powerful tools that come...
2009-12-07
1,411 reads
In case you haven’t discovered this for yourself, SQL Server Profiler is one of the most powerful tools that come...
2009-12-07
1,411 reads
Cross-Posted from A Goal-Keeping DBA blog:
I'm reading Getting Things Done because of Brent Ozar's excellent blog post, How I Use...
2009-12-07
694 reads
Next week, I have the honor of presenting two different sessions on SSIS. These 2 events are the last speaking...
2009-12-07
606 reads
When working with Analysis Services, you will often run into the same warnings over and over as you are developing....
2009-12-07
491 reads
Alternative title for programmers using C-derivatives and Java:
Good Programmer == Lazy & Dumb?
I read this blog post, Why Good Programmers Are...
2009-12-07
670 reads
Hey there gang. I, like many of you, am very excited about the new betas for the 2010 product stack...
2009-12-07
464 reads
I recently attended Code Camp in Tampa and I want to thank everyone who made a SQL guy feel so...
2009-12-07
320 reads
I recently was working with a client and as sometimes happens, I could not get on their network. Not a...
2009-12-07
511 reads
Ran across the Time Top 50 web site list and thought I’d share. I’m fond of lists, especially about web...
2009-12-07
425 reads
In previous articles, we have covered the system bus, host bus adapters, and disk drives. Now we will move up...
2009-12-07
8,957 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