Running dbatools commands with VS Code tasks
I’ve started to look at the excellent dbatools.io to automate some of the checks that I routinely perform on my...
2017-07-07
909 reads
I’ve started to look at the excellent dbatools.io to automate some of the checks that I routinely perform on my...
2017-07-07
909 reads
Final Lions Test tomorrow! The win last week sets up a thrilling series decider, if they win they’ll be the...
2017-07-07
801 reads
With some applications, there may be a need to pull data from other database instances, or from other databases within...
2017-07-06
778 reads
Top String FunctionsMachine Learning – Python IntegrationResumable Index Operations
Happy Learning!!
2017-07-06
458 reads
In this module you will learn how to use the Drilldown Choropleth Custom Visual. The Drilldown Choropleth is a map...
2017-07-06
1,037 reads
“Climb the mountain to see the world, not be seen by the world.” – from Tim Ford.
This past July 1 was...
2017-07-06
460 reads
I want to take a moment to thank a few people for being amazing.
First up, Thomas LaRock is wrapping up...
2017-07-06
334 reads
I have written a module SQLDiagAPI for consuming the SQL Server Diagnostics API with PowerShell. I blogged about how I...
2017-07-06
462 reads
SQL Server 2012 introduced IIF and CHOOSE functions and I completely missed they even existed until recently. They make some...
2017-07-06
63 reads
If you are actively managing VMware environments with workloads that have high performance needs (such as all of the virtualized...
2017-07-05
497 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