Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
gtjr92
Starting Member
15 Posts |
Posted - 2009-01-21 : 10:12:34
|
I have a asp.net 2.0 web app. It executes the stored procedure which executes my Package below. All that works fine. Howeverif there is an error with the SSIS package it never returns any errors to .net in the web browser.I tried returning the error code to no avail.thanks in advancealter Procedure [SSISImportTest]@filenameparam varchar (100)Asdeclare @cmd varchar(1000)declare @filePathparam varchar(1000)set @filePathparam = 'd:\myfiles\'select @cmd = 'dtexec /SQL \ImportTest'select @cmd = @cmd + ' /SET \Package.Variables[User::filePathparam].Properties[Value];' + @filePathparam select @cmd = @cmd + ' /SET \Package.Variables[User::fileNameparam].Properties[Value];' + @fileNameparam declare @returncode intexec @returncode = master..xp_cmdshell @cmdselect @returncodeIf @returncode <> 0 Begindrop table importtmpReturn @returncodeReturn ' Test Error'End |
|
|
|
|