SQL Servers Black Box Recorder – Def Trace
Across many professions and industries there is often a need to have some sort of device that “audits” everything that...
2018-12-28
276 reads
Across many professions and industries there is often a need to have some sort of device that “audits” everything that...
2018-12-28
276 reads
Very much like what you may find with the airline industry, the black box recorder in SQL Server is not just a single method (device) implemented to capture all of...
2018-12-28
18 reads
On January 17, 2019, I will be giving a webcast with MSSQLTips on data modeling best practices. It’s scheduled for...
2018-12-28
1,337 reads
I was asked by the reader on how to get all the port information of SQL Servers instances. As you...
2018-12-27
544 reads
Another post for me that is simple and hopefully serves as an example for people trying to get blogging as...
2018-12-27 (first published: 2018-12-05)
2,501 reads
I have been doing a lot of posts of late about extended events but have failed to share some of...
2018-12-27
3,004 reads
Using a file target is not difficult from a creation point of view (event session creation). But, some basics are critical or you could end up with fewer follicles.
Related...
2018-12-27
17 reads
It’s the end of the year, and I’m looking back at the events and travels I’ve had this year. I...
2018-12-27
295 reads
One of the more common wait types for SQL Server is called WriteLog. In its most basic form it is...
2018-12-27 (first published: 2018-12-18)
3,682 reads
Following is the DBA script which generally used...
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
2018-12-27
11 reads
By Steve Jones
Here are the resources for my talk at Day of Data Boston. Slides –...
By Steve Jones
I’ve covered the values in a number of previous posts on the Book of...
By Arun Sirpal
When the evidence names the database, it says so. When it doesn’t, it stops....
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