SQL Server 2012: The Amazing CONCAT function for string concatenation

The SQL Server 2012 has introduced the new CONCAT function to the concatenation of the string and integer value.

Previously, we were doing concatenation using ‘+’ operator and using COALESCE().
But this newly introduced CONCAT() is faster than any other approach for the concatenation techniques.

The syntax of CONCAT():

Different example of CONCAT():

CONCAT string values:

CONCAT integer values:

CONCAT decimal values:


Invalid CONCAT parameters:

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com