Audit All Select Statements
Legislation and regulation sometimes dictates that certain activities must be tracked within a database. On occasion, it will be required...
2016-08-15 (first published: 2016-08-08)
2,582 reads
Legislation and regulation sometimes dictates that certain activities must be tracked within a database. On occasion, it will be required...
2016-08-15 (first published: 2016-08-08)
2,582 reads
My post the top 3 books for becoming TOGAF certified punlished last week looked at books on preparing for the...
2016-08-08
443 reads
Following script is perhaps the most executed script in my 10 year Database Administration career. The script has been my...
2016-08-11 (first published: 2016-08-07)
3,082 reads
Most data warehouses and data marts require a date dimension or calendar table. Those of us that have been building...
2016-08-11 (first published: 2016-08-06)
2,460 reads
AdvertisementsAlwaysON database NOT SYNCHRONIZED and RECOVERY PENDING
I have recently come across an issue that, one of my alwaysON secondary replica...
2016-08-16 (first published: 2016-08-06)
16,375 reads
We live in a day and age when security (data, network, server, etc) is seemingly at the forefront of the daily news.
Related Posts:
Cannot Open Backup Device January 1, 2020...
2016-08-05
10 reads
We live in a day and age when security (data, network, server, etc) is seemingly at the forefront of the...
2016-08-05
1,052 reads
Lambda architecture is a data-processing architecture designed to handle massive quantities of data (i.e. “Big Data”) by using both batch-processing and...
2016-08-08 (first published: 2016-08-05)
3,250 reads
I’m going to be speaking this fall at Visual Studio Live, Washington D.C. edition on Oct 3-6. This is my...
2016-08-05
461 reads
2016-08-05
194 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