Code:
set @v_cmdstr = 'exec [red]@v_result =[/red] master..xp_cmdshell ''copy ' + @v_srcpth + ' ' + @v_despth + '''' + ' , no_output'
execute (@v_cmdstr)
Here the @v_result variable ussage is not allowed. so how can i verify (in code) that the copy process has been a successful?
p.s. its a part of a bigger transational job.