Validating a Set of Database Scripts using DLM Automation
The basis of all the DLM Automation from Redgate is a series of PowerShell cmdlets. They might look intimidating or...
2016-12-09 (first published: 2016-11-28)
1,902 reads
The basis of all the DLM Automation from Redgate is a series of PowerShell cmdlets. They might look intimidating or...
2016-12-09 (first published: 2016-11-28)
1,902 reads
There are a bunch of ways you could create a database clone. Backup and restore is one method. Export/Import is...
2016-12-19 (first published: 2016-11-28)
2,637 reads
This year we held our 10th SQLSaturday, a very nice milestone to hit. I’ll reflect in a separate post on...
2016-11-28
732 reads
If you ask a senior DBA what are the top 5 most important commands in T-SQL you’ll probably see DBCC...
2016-12-05 (first published: 2016-11-28)
2,491 reads
Hi friends, recently I was finding a way on taking backup of local database and restore that database to Azure...
2016-11-28
982 reads
There are several ways to execute SSIS packages that have been deployed to the SSIS catalog, and my favorite way...
2016-12-02 (first published: 2016-11-28)
3,948 reads
MCSA SQL Server 2016
The new SQL 2016 MCSA exams are out and joy of joys, the DBA path no longer...
2016-11-28
436 reads
One of my client accidentally set up an SQL Server Analysis Services in multi-dimensional mode instead of Tabular mode. In this...
2016-11-28
1,461 reads
Gethyn will be getting me to update this every week, there are some awesome training deals available for £750 + VAT....
2016-11-28
384 reads
After 10+ years of a dedicated DBA, for the past 17 months, I have purposely chosen to work as a...
2016-12-01 (first published: 2016-11-28)
1,905 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