Temporal Tables in 60 seconds
If you've ever designed a database you've most certainly run into the need for what we called history tables, those...
2016-10-11
437 reads
If you've ever designed a database you've most certainly run into the need for what we called history tables, those...
2016-10-11
437 reads
#TSQL2SDAY is a monthly blog party hosted by a different blogger each month. This blog party was started by Adam...
2016-10-11
211 reads
This month is an interesting T-SQL Tuesday topic, and it’s brought to us by Andy Mallon, with the topic of...
2016-10-11
613 reads
On Monday, October 24, 2016, there will be a Free-Con in Seattle for those that might not be attending a...
2016-10-11
440 reads
Today is the last day to register to vote in Texas. I’m not sure about other states in the US...
2016-10-11
433 reads
Busy, busy, busy.
A lot of the work around PASS currently is getting ready for Summit. I’m prepping my part in the...
2016-10-11
443 reads
Harassment is a problem at some of the conferences we go to. What can we, as attendees and speakers and...
2016-10-11
417 reads
As I scrolled through the twitter feeds I ran across one from Tom LaRock (b|t) on PASS Summit being three...
2016-10-11
412 reads
My friend Andy Mallon (b/t) is hosting T-SQL Tuesday this month. In case you aren’t aware T-SQL Tuesday is a...
2016-10-11
428 reads
TSQL Tuesday is a monthly blog part hosted by a different blogger every month – it was started by Adam Machanic....
2016-10-11
421 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