I'm writing a trigger to update information in database B from database A.
Database B has 2 tables
Table A has a primaryKey CustomerID and Table B has a foreignKey Customer_ID, these tables are related 1-->M.
The trigger that I've written updates all customer information apart from the CustomerID field.
I get a FK_Constraint error message when I try to change the Customer_ID field in TableA because no FK exists in TableB.
Is there anyway that I can update the customerID in both tables?
Thanks for anything.
Theo