Hi
I have a stored procedure [CreateHandle] which will return a one record with a single cell. E.g.:
[Handle]
GDR5H
Now I am trying to call the stored procedure from within another procedure and grab the return value into a variable. So something like this (not the correct syntax):
DECLARE @Handle char(5)
SET @Handle = EXEC [dbo].[CreateHandle]
What is the correct syntax?
Thanks
I have a stored procedure [CreateHandle] which will return a one record with a single cell. E.g.:
[Handle]
GDR5H
Now I am trying to call the stored procedure from within another procedure and grab the return value into a variable. So something like this (not the correct syntax):
DECLARE @Handle char(5)
SET @Handle = EXEC [dbo].[CreateHandle]
What is the correct syntax?
Thanks