T-SQL: Cross-Database Logic
Please see my other Database Development articles. Executing T-SQL against different databases Often when accessing and manipulating data, requirements demand logic that crosses databases. Performing such actions do not require drastically different T-SQL, only an understanding of the syntax. In this example, I begin with two databases with identical tables and nearly identical records. For…