sql server db deployment script ignoring constraints etc until commit

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-31T06:24:37Z Indexed on 2010/05/31 6:32 UTC
Read the original article Hit count: 176

Filed under:
|
|
|
|

Hi all,

I am planning on doing a database deployment script for sql server 2005.

Currently we have a tool that will run all of the tables, foreign keys, indexes and then data, each of which is located in a separate file with a certain extension (eg. tab, .kci, .fky) and the tool just runs *.tab, *.kci, *.fky into the db etc.

Could I possibly combine all of thse into one file and have them run ignoring referential integrity until they are all complete, I would turn it on before we started inserting test data.

It is just unmanageable having to maintain 4 or 5 different types of scripts for one table.

Are there any issues I should be aware of?

Cheers

© Stack Overflow or respective owner

Related posts about sql

Related posts about deployment