• Please note. Where you have a multi part foreign key that this script will NOT Work correctly.
    it will try and drop and re-create the FK once for each element....
    i.e. in my  case wh have a header table with a branch and document and a detail record with branch,document and seqno