Can someone please explain the best way to automate a SSIS package that was built in Visual Studio 2015 without using the SQL Agent? Preferably in Task Scheduler. I have tried using the older technique of dtexec but I kept receiving a version error message. I then tried running dtexec as a batch file and it could not locate the dtexec file. Any help would be appreciated.
Here is the script I tried using:
C:\Program Files\Microsoft SQL Server\110\DTS\Binn\dtexec /f "C:\Users\amoberg\Documents\Scripts\DailyCancel\DailyCancel\Package.dtsx"
Thank you
UPDATE: Here is the CMD error:
C:>dtexec /F "C:\Scripts\DailyCancel\DailyCancel\Package.dtsx" Microsoft (R) SQL Server Execute Package Utility Version 11.0.6020.0 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved.
Started: 12:42:33 PM Error: 2017-01-05 12:42:33.92 Code: 0xC001700A Source: Package Description: The version number in the package is not valid. The version number cannot be greater than current version number. End Error Error: 2017-01-05 12:42:33.93
Code: 0xC0016020 Source: Package Description: Package migration from version 8 to version 6 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number.". End Error Error: 2017-01-05 12:42:33.93 Code: 0xC0010018 Source: Package Description: Error loading value "8" from node "DTS:Property". End Error Could not load package "C:\Scripts\DailyCancel\DailyCancel\Package.dtsx" because of error 0xC0010014. Description: The package failed to load due to error 0xC0010014 "One or more error occurred. There should be more specific errors preceding this one that explains the details of the errors. This message is used as a return value from functions that encounter errors.". This occurs when CPackage::LoadFromXML fails. Source: Package Started: 12:42:33 PM Finished: 12:42:33 PM Elapsed: 0.094 seconds