How can I have an SSIS data flow create a table that doesn’t exist? Every time I try to run the package, it gives me an error saying that the destination table doesn’t exist.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you want your package to create a table and then populate it, you can create one using the
Execute SQLtask. Just give it the script to create your table.If you do not have the option of using an
Execute SQLorScripttask, then you can use aScriptComponent, but since it executes for every row, you’ll have to get creative to have it execute only once.Also, when you run this package, SSIS going to crib about the table not being found during Validation.
To counter that, in the package properties, in data-flow that populates the table, set
Delay Validationproperty toTrue