Execute Package


hi ,

i trying execute package using t-sql script. here go script....

set @cmd =
  'cmd.exe /c ' + 'c:\\program files\microsoft sql server\100\dts\binn\dtexec.exe '
  --had create share because didn't long names ie "program files"
  + ' /file "' + @drive + '\\ssis\ssis_greatice\iandhavarapu\jobfiles\ssis_great_ice_dim_all_users.dtsx" '
  + ' /configfile "' + @drive + '\\ssis\ssis_greatice\iandhavarapu\jobfiles\ssis_great_ice_' + @environment + '.dtsconfig" '
                                + '/reporting ep' -- errors , progress
  --create log file
  + ' >> ' + @drive + '\\ssis\ssis_greatice\sqlagent_dev_dailyjob_results\greatice_outfile_' + @today + '.txt'

select @cmd
exec @rc = xp_cmdshell @cmd
select @rc

when job executes without actual package run. when execute same code in ssms...it says.....

'c:\\program' not recognized internal or external command, operable program or batch......

i think going wrong in path... can 1 throw light on this...


mark answer if post you... regards, indraneel a

i got answer....my package running fine...problem permission. not able create log file in specified location.

its solved now....thx every one


mark answer if post you... regards, indraneel a


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607