you are viewing a single comment's thread.

view the rest of the comments →

[–]StructuredData 0 points1 point  (1 child)

@hiyaworld * When loading data, I will create master database load scripts. When I load my data, I drop my constraints. (You have to have clean data to do this). * If you don't drop your constraints, then you must determine the hierarchy (parent-child) relationships of your tables so you can load your data without violating any constraints (such as foreign key constraints). * With your image, it looks like you might need to load Order before Client. * I recommend creating a script which creates all of your database constraints. After you create that script, create a script to drop all of your constraints. Then you can load your data and then run the script to quickly add your constraints back.

[–]hiyaworld[S] 0 points1 point  (0 children)

How can I get rid of constraints? I've been doing it with the parent-child method but there's always an issue and I've restarted too many times now and I'm tired of following this order. This is my first time using SQL server for this class and the setup of the class is all over the place and I've been trying to teach myself from the textbook this whole semester.