Is there a printf-like function in Sql Server? I want the same features as the RAISERROR function, but instead of throwing an error, or printing a message, I want to wri
If you are looking to store some message in a variable, then SET should be enough for you to handle right? Unless I am not clear with the question.
SET @varcharVariable = 'message text';