sql server - import data using ssis? -


trying set import form live database our development database.

i trying using ssis, import failing because of constraints.

e.g. have following tables:

* customers * products * orderlines * orders 

importing customers , products fine, because not depend on anything. when importing orderlines fails because order not yet created.

how change order of how ssis imports tables?

or maybe i'm not supposed use foreign key constraints?

it sounds have foreign key constraints. want load orders table before load orderlines table.

i'm assuming have single ssis package contains 1 data flow task each target table. need create connection between data flow loads orders , data flow loads orderlines. connection called precedence constraint.

select orders data flow , should see green arrow. click , drag arrow orderlines task. creates precedence constraint indicates orders data flow must complete before orderlines dataflow can start.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -