SSIS package that will copy a table from one server to another based on a var.

105 pts.
Tags:
SSIS Package
Another NeeBee question....I would like to have an SSIS package that would check if a variable "RefreshTable" = 'YES' which is found on a table from server A, delete all the data from a table on server B and then load that table on server B with data from an identical table which is on server A. All tables and servers are SQL 2005.

Answer Wiki

Thanks. We'll let you know when a new response is added.

This can be done very easily.

Setup a Script task and if the dts.variables.item(“RefreshTable”).value = ‘YES’ then stop the package, otherwise mark the task as successful which will allow the package to continue.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • NewBee7
    That would be fine but I (NewBee) don't know vb.net ... Is there any code that I can look at that is simmilare???? Thanks!
    105 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following