How Can I Quickly Script Out Replication?
I recently finished taking down a bunch of servers that I was using to scale out my environment by forcing...
2010-07-16
525 reads
I recently finished taking down a bunch of servers that I was using to scale out my environment by forcing...
2010-07-16
525 reads
This will start a new trend on my blog. Every Friday morning I'll have a blog post covering the free SQL...
2010-07-15
752 reads
With query performance becoming a constant battle, its often a forgotten fact that cursors should be avoided (in the majority...
2010-07-15
695 reads
My first guest editorial published !
http://www.sqlservercentral.com/articles/Editorial/70725/
Would appreciate any comments you have.
2010-07-15
580 reads
We are trying to buy another property here at the ranch. My wife had to leave town in the middle...
2010-07-15
748 reads
Download Script
Sorry that it’s taken me so long to write this post, but I have been a little busy with...
2010-07-15
700 reads
I went through the exercise months ago where I tried to re-organize my blog reading to be more efficient at...
2010-07-15
841 reads
I’ve had variations of this conversation a couple of times lately and thought it was worth writing down some thoughts....
2010-07-15
517 reads
I think this is a good idea, and I’ll give you some reasons, but every SQL Saturday ought to consider...
2010-07-15
977 reads
This is the review of the second chapter of the book Defensive Database Programming. The title of this chapter is...
2010-07-15
1,828 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...
WhatsApp CS 628218520154 Jl. Suryopranoto No.40, RT.12/RW.7, Petojo Utara, Kecamatan Gambir, Kota Jakarta Pusat,...
WhatsApp CS 628218520154 Jl. Pegangsaan Timur No.1, Cikini, Kec. Menteng, Kota Jakarta Pusat, Daerah...
WhatsApp CS 628218520154 Jl. Pintu Air Raya No.36 Q, RT.6/RW.1, Ps. Baru, Kecamatan Sawah...
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