I have a stored procedure with 2 output parameters
@value1
@value2
I have a select statement and I want to assign the results to the 2 variables, something like this
SELECT @value1,@value2 = column1, column2 from table where table.id = @id
this syntax is incorrect though, how can I achieve this ? Is this even the correct way ?