Hi,
I'm attempting to run a DTS package and change the value of a Global Variable using 'dtsrun'.
My package simply takes the result of an SP and populates a .txt file. When i created my global variable (int datatype), i gave it a default value of 0 as it couldn't be left as null.
my code is as follows:
The code in my Transfer Data Task is as follows:
However the value of the GV does not change and the QA shows an output of:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step
DTSRun OnProgress: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step; 0 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 0
DTSRun OnFinish: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step
DTSRun: Package execution complete.
NULL
Can anyone suggest where i'm going wrong and point me in the right direction?
Thanks in advance.
Cheers,
Leigh
The problem with common sense is that it isn't that common!
I'm attempting to run a DTS package and change the value of a Global Variable using 'dtsrun'.
My package simply takes the result of an SP and populates a .txt file. When i created my global variable (int datatype), i gave it a default value of 0 as it couldn't be left as null.
my code is as follows:
Code:
master..xp_cmdshell 'dtsrun /S192.168.1.21 /UMarketing /Pmarketing /N"Marketing - Healthcare_Status Recordset"
/APracticeID:typeid=3"101"/W"True"'
The code in my Transfer Data Task is as follows:
Code:
EXEC marketing..pr_Mailing_Healthcare_Status @PracticeID = ?
However the value of the GV does not change and the QA shows an output of:
DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step
DTSRun OnProgress: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step; 0 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 0
DTSRun OnFinish: Copy Data from vw_Healthcare_Status to C:\Healthcare_Status.txt Step
DTSRun: Package execution complete.
NULL
Can anyone suggest where i'm going wrong and point me in the right direction?
Thanks in advance.
Cheers,
Leigh
The problem with common sense is that it isn't that common!