xp_sprintf (Transact-SQL)
SQL Server 2008 R2
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.