28
loading...
This website collects cookies to deliver better user experience
SSIS typically calls helper processes like script tasks, but if you
flip things around and call SSIS from helper processes you can easily
leverage the strengths of both SSIS and helpers.
all_cube_zips = etl.daily_zip_files(working_dirs=rtp.working_dirs,
runtime_parms=rtp.runtime_parms)
for cnt, zipfile in enumerate(all_cube_zips):
etl.clear_working_dirs(working_dirs=rtp.working_dirs,
runtime_parms=rtp.runtime_parms,
name_prefix="DailyRetails")
dailyretail_xml_files = etl.unzip_prefix_xml(name_prefix="DailyRetails",
daily_zip_file=zipfile,
working_dirs=rtp.working_dirs,
runtime_parms=rtp.runtime_parms)
tsv_files = dcx.write_dailyretail_tsvs(xml_files=dailyretail_xml_files,
daily_zip_file=os.path.basename(zipfile),
column_defaults=rcd.DailyRetails_column_defaults,
working_dirs=rtp.working_dirs,
runtime_parms=rtp.runtime_parms,
append_only=False)
os.system(r"\\Shares\DailyCode\bats\SelectReload.bat")
os.system(r"\\Shares\DailyCode\bats\SelectReload.bat")
SelectReload.bat
show how to set up and run a package with dtexec.exe
.rem change to your dtexec directory
cd "c:\Program Files\Microsoft SQL Server\150\DTS\Binn"
rem execute an SSIS package - use fully qualified paths
dtexec /Project "\\Shares\DailyCode\ispacs\flat.ispac" /Package Reloads.dtsx
if %ERRORLEVEL% NEQ 0 goto Error18
dtexec.com
like this. Many anally retentive IT outfits will simply outlaw such renegade scripting. If you're incarcerated in Administrative Rights jail I'd suggest taking advantage of the current labor shortage and find another job. Squabbling over administrative rights is a demeaning waste of IT talent that can no longer be tolerated.