HappyProgrammer
Programmer
I have written a script task which does the following:
1. Queries a table and returns a list of variable names and values. It uses the same table regardless of where it is being run from.
2. Loops through existing user variables and if a match is found with the results in step 1 it will assign the value from the table to the variable.
The method it is using to get and set the name of the variables is Dts.Variables({Insert Variable Name Here}).Value which works fine when the code is being run as a script task in SSIS package but when trying to develop a custom component I get the error "Name 'dts' is not declared". I understand what the error means but am unsure how to get rid of it. Is there a way to ignore build errors or a different way to reference the package that this component will be running in?
I can post code if necessary. Any help will be appreciated.
Thanks
1. Queries a table and returns a list of variable names and values. It uses the same table regardless of where it is being run from.
2. Loops through existing user variables and if a match is found with the results in step 1 it will assign the value from the table to the variable.
The method it is using to get and set the name of the variables is Dts.Variables({Insert Variable Name Here}).Value which works fine when the code is being run as a script task in SSIS package but when trying to develop a custom component I get the error "Name 'dts' is not declared". I understand what the error means but am unsure how to get rid of it. Is there a way to ignore build errors or a different way to reference the package that this component will be running in?
I can post code if necessary. Any help will be appreciated.
Thanks