My Stored Proc is not behaving how I would expect. I am expecting to populate multiple variables from 1 select statement.
Like this:
Declare @Phone nvarchar(30);
Declare @Fax nvarchar(30);
select @Phone = phone , @Fax = fax from customer where customerID = 1;
However, the variables are always blank after this select. I am sure the result set is scalar, and data actually exists.
Where is the obvious blunder, and thanks!
select * from customer where customerID = 1returns any values?