This should work fine:
insert @Address exec [dbo].[GetAddress] @City = 'Atlanta',@StateProvinceID = 80 SELECT * FROM @Address
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How do you insert data into a table variable or temp table by calling a stored procedure?
This should work fine:
insert @Address exec [dbo].[GetAddress] @City = 'Atlanta',@StateProvinceID = 80 SELECT * FROM @Address