I have a temporary table
@MyTmpTable(col1, col2, col3, col4)
and my stored procedure SP1 returns 3 columns values
I can use:
insert into @MyTmpTable (col2, col3, col4) exec SP1
to fill @MyTmpTable but col1 value will always be null, is there any way I can do something like this?
declare @var1 varchar(10) = 'myvalue';
insert into @MyTable(col2, col3, col4) @var1, exec SP1
Can anyone help?