Write-Host || Cannot invoke this function because the current host does not implement it
Issue: While running powershell in SQL job step, I am getting below error: –
A job step received an error at...
2017-02-01
1,507 reads
Issue: While running powershell in SQL job step, I am getting below error: –
A job step received an error at...
2017-02-01
1,507 reads
I noticed that my backup was taking longer than usual. I went to Perfmon to look at some counters, more...
2017-02-01
829 reads
I was curious about how the SQL language stands with the other technologies. Next table shows it. The data is taken from StackOverflow. Charted data looks like in...
2017-02-01
18 reads
I was curious about how the SQL language stands with the other technologies. Next table shows it. The data is taken from StackOverflow. Charted data looks like in...
2017-02-01
19 reads
I was curious about how the SQL language stands with the other technologies. Next table shows it. The data is...
2017-01-31
545 reads
This is the second article in my series about learning how to use SQL Server 2016's new JSON functions. If you haven't already, you can read Part 1?—?Parsing JSON.
Part...
2017-01-31
28 reads
I love SQL Prompt, especially the new formatting engine. However, it’s not perfect, and there are times I don’t want...
2017-01-31
946 reads
As DBAs we all know setting your file growth to grow by percent is not optimal. It can cause all...
2017-01-31
747 reads
Starting a business is easy. Have an idea, some skills, a customer or two, and you are in business. However,...
2017-01-31
641 reads
I am so honored and excited to have been selected to speak at SQL Saturday Richmond on March 18, 2017.
I...
2017-01-31
610 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