views:

26

answers:

1

I have a SP that runs a SSIS package.

xp_cmdshell 'dtexec /f "F:\SSIS Package\test.dtsx" /Rep E'

When I run the SP in VS I get an Output window where I can see if it was successful. Is there a way to get the output from this into my asp.net application ?

+2  A: 

One practice I've often seen is to capture the results into a table. Something along these lines:

create table #dtexecOutput(varchar(4000))

insert into #dtexecOutput exec master..xp_cmdshell 'dtexec /f "F:\SSIS Package\test.dtsx" /Rep E' 

select * from  #dtexecOutput
Garett
Yes this is what I've done too.Although this kinda looks like a hack to me. But it gets the job done :).
Iulian