Taking Script of Sql Server Jobs for Migration
when migration sql server database to a new server, i use the following powershell script to take all sql server...
2011-06-23
2,475 reads
when migration sql server database to a new server, i use the following powershell script to take all sql server...
2011-06-23
2,475 reads
Red Gate’s SQL Source Control (RGSSC) is very decent solution source control solution for database development. I am personally using...
2011-06-23
3,056 reads
A few months back, I was asked if there was a way that the information shared by the Twitter users...
2011-06-22
908 reads
find.....underlings.....
searching......
underlings found......
I recently was given the task to create a stored procedure to find people who are under other people...
2011-06-22
847 reads
There are three tools I use every day without exception. They all save me valuable time in surfing the net:
Delicious...
2011-06-22
1,304 reads
Tonight, June 22, at 6:30 PM EDT I'm presenting Paging DR Availability, You're Wanted In The Recovery Room for the...
2011-06-22
635 reads
Transaction Log : >> Transaction log is tracks transaction on that database. >> There should be at least one transaction log (ldf) file...
2011-06-22
643 reads
The presentation material from the Tampa PowerShell User Group 6/21/2011 meeting on PowerShell ETL is available here:
2011-06-22
1,299 reads
Tomorrow is time for part two of my presentations this month on Extended Events for the PASS DBA Virtual Chapter. ...
2011-06-21
648 reads
Do you know much about data compression? It seems that quite a few people I meet don’t really understand how...
2011-06-21
2,348 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