Answers for "how to return multiple values from stored procedure in sql server"

SQL
4

how to return multiple values from stored procedure in sql server

CREATE PROC myproc AS 
BEGIN
     SELECT name FROM SYSOBJECTS
END
go

DECLARE @t TABLE (name varchar(100))
INSERT @t (name)
exec myproc
Posted by: Guest on August-30-2021
0

stored procedure sql get multiple variable selects

Declare @Phone nvarchar(30); 
Declare @Fax nvarchar(30); 

select @Phone = phone , @Fax = fax from customer where customerID = 1;
Posted by: Guest on August-25-2020

Code answers related to "how to return multiple values from stored procedure in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language