Refactoring database after migrating table
Replace the tables in the old database with synonyms that point to the location in the new database.

This not only minimizes the code change, it gives you a single place to manage the references to objects in other databases.