Home Forums SQL Server 2005 T-SQL (SS2K5) How to update/roll back two tables in separate Dbs from Stored Procedure - Take 2 RE: How to update/roll back two tables in separate Dbs from Stored Procedure - Take 2

  • First of all thank you for your replies.

    1. Both servers update the email table. HR adds employee data, Campus Solutions adds student data. A student can also be an employee and vice versa. The key is EMPLID which is shared across systems. An employee will have a EMPL type and a student will have a CAMP type. There are other types as well (like HOME, BUSN, OTHR, etc.) and on the student side the types can change over the life cycle of the student.

    2. When one of the servers are down we can roll back everything and attempt the update the next time the Email Update program is executed -or- (black box) update the down server when it comes back up.

    3. Make any updates in the order they were received.

    Regarding SCC Veteran's reply: the table is delivered and used by the ERP system it is a part of so I'm not able to change the current definition or process updates.

    The service broker may hold some promise but I will have to research it and see what is available in our environment.