When working with SQL Server, string concatenation is one of those everyday tasks that’s easy to take for granted. It can feel like second nature to reach for the trusty old + operator to piece together strings, but SQL Server also provides an alternative way to handle concatenations. Yes, I’m referring to the CONCAT() function.
And there’s a subtle difference between the two approaches that might sway you towards using one or the other.
Let’s compare these two approaches to building strings in SQL Server.