SQL print multiple variable code example
Example 1: Cast for print sql
declare @x INT = 1
PRINT 'There are ' + CAST(@x AS VARCHAR) + ' alias combinations did not match a record'
Example 2: SQL print multiple variable
declare @first INT = 1, @second int = 2
PRINT '1st var ' + CAST(@first AS VARCHAR) + ' 2nd var ' + CAST(@second AS VARCHAR)