xp_sprintf (Transact-SQL)
SQL Server 2012
Formats and stores a series of characters and values in the string output parameter. Each format argument is replaced with the corresponding argument.
Formats and stores a series of characters and values in the string output parameter. Each format argument is replaced with the corresponding argument.