dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

SSIS shell Problem - URGENT Help Please - sqlserver-dts

This is a discussion on SSIS shell Problem - URGENT Help Please - sqlserver-dts ; Hi I have created a SSIS Package that has many steps - The first however is a Script Task that runs a Shell command to Retrive the File that I need to manipulate. I have used the Shell() command in ...


Home > Database Forum > Microsoft SQL Server > sqlserver-dts > SSIS shell Problem - URGENT Help Please

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 07-17-2006, 12:34 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default SSIS shell Problem - URGENT Help Please

Hi

I have created a SSIS Package that has many steps - The first however is a
Script Task that runs a Shell command to Retrive the File that I need to
manipulate.

I have used the Shell() command in the Visual Studio for Applications
however whne the task is running this step is missed but does not error (in
debugging it just steps straight through it

I require urgent help on this Please

Thanks

Matt
Reply With Quote
  #2  
Old 01-05-2009, 12:42 PM
Database Newbie
 
Join Date: Jan 2009
Posts: 1
khalil_ACH is on a distinguished road
Smile Re: SSIS shell Problem - URGENT Help Please

Hi

I did have the same problem, here is how I fix it.
first you have to save the DTS cmd in bat file
then execute the bat file using the shell cmd.

Exple:
lsCmd = "DTEXEC /f " & lsPkgName & " /Reporting E >> """ & lb_Log_filename & ".txt" & """"
Write_To_File (lsCmd, "lb_filename.bat")

I hope this help

Khalil
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 09:37 PM.