iamtechuser
IS-IT--Management
Hi
I need to select into a variable:
But @output is empty... but #tmp is not.
Help, how can I capture row data from #tmp into a variable?
Thanks
I need to select into a variable:
Code:
insert into #tmp EXEC @result = master..xp_cmdshell @cmd
IF (@result <> 0) -- return value from xp_cmdshell, 0 = success, 1 = failure
BEGIN
SELECT @output = result FROM #tmp
But @output is empty... but #tmp is not.
Help, how can I capture row data from #tmp into a variable?
Thanks