I have got myself confused !
I'm running VS2013 on my local machine with SQL2014. I can run the package from VS without an issue and likewise from DTEXEC on my local machine no issues. The package inserts data to table in a SQL2014 table on a different server.
All well and good so far.
The problem occurs when I try and execute the package from a TSQL query on SQL2008R2 I keep getting a version error
Looking through the forums It suggests the version of DTEXEC is the problem.
TSQL on SQL2008R2
EXEC
master..xp_cmdshell'DTExec /File "\\SVR1\DTSX\Package.dtsx" /Set \package.variables[User::LedgerKey];"918D0383-449D-4926-B106-02F309DB2BF9"'
The error I get is
Description: Package migration from version 8 to version 3 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number.".
Is there a way to do this, without using a SQL agent job. If so how?
Dont ask me .. i dont know