According to my research, in MSSQL there is not array varible, isn’t it?
I want to get the result of a select query. Query returned more than 1 value. (You can see the query below, it returned more than 1 value and I cannot assign it.)
Declare @sp_name varchar(100)
set @sp_name = (select name from sys.procedures)
Are there any way to get the result to a variable?
You can use a table variable: