• Thanks everyone for all the help. That was definitely the problem (untrusted) in our database. The script generator was just putting the database to the state that it was in. I end up doing a query on our prod database and we had over 600 untrusted foreign keys and 53 that were disabled.