Alessandro Alpi

Alessandro works in the IT since 2000. He started the DBA career since 2005. It's CTO and co-founder of Engage IT Services S.r.l. in which he's the Team Leader. He manages the development team with a continuous improvement pattern using agile practices. He designed the SQL Server automated deployment in his company using the RedGate tools and Visual Studio Team Services. Thanks to this, he's now Friend Of RedGate. Alessandro is also a teacher for SQL Server and ALM topics and a Translation Community Contributor on the official MS documentation. He's staff member of GetLatestVersion.it. He is also the organizer of some italian online and offline events, like PASS SQL Saturdays and DevOpsHeroes. He's the local organizer of SQL Saturday Parma. He's Certified Disciplined Agile Practitioner.

Blog Post

A 2015 full of DLM

After SQL Saturday Pordenone, I’ll keep speaking about DLM (aka ALM on databases) during the following events:
PASS Italian Virtual Chapter, April 14. I’ll demonstrate...

2015-03-24

549 reads

Blog Post

A 2015 full of DLM

After SQL Saturday Pordenone, I’ll keep speaking about DLM (aka ALM on databases) during the following events:
PASS Italian Virtual Chapter, April 14. I’ll demonstrate...

2015-03-24

286 reads

Blogs

Goodbye, Microsoft

By

A few years ago I took a new job at Microsoft, working as a...

The SUM of Nothing: #SQLNewBlogger

By

I caught this interesting item over on Pinal Dave’s blog: Eleven Interview Questions that...

How to Move the SSMS Status Bar to the Top and Color-Code SQL Server Connections

By

I use color-coded connections in SSMS to distinguish Production, Pre-Production, UAT, and Development. But...

Read the latest Blogs

Forums

ALAMAT BCA KCU SURYOPRANOTO Tlp:08218520154

By layanan_Bca88

WhatsApp CS 628218520154 Jl. Suryopranoto No.40, RT.12/RW.7, Petojo Utara, Kecamatan Gambir, Kota Jakarta Pusat,...

Alamat BCA KCP Sentral Cikini Telp:08218520154

By R4nt4u

WhatsApp CS 628218520154 Jl. Pegangsaan Timur No.1, Cikini, Kec. Menteng, Kota Jakarta Pusat, Daerah...

Alamat BCA KCP Pintu Air Telp:08218520154

By m4rt1n4

WhatsApp CS 628218520154 Jl. Pintu Air Raya No.36 Q, RT.6/RW.1, Ps. Baru, Kecamatan Sawah...

Visit the forum

Question of the Day

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        Sally
I 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