sql - C# synonym -Joining two tables in two different databases -
hi have requirement join 2 table in 2 different databases. found following link make use of synonym task.
https://msdn.microsoft.com/en-us/library/ms162582.aspx
but when add synonym not recognized c#/visual studio. please suggest me solution.
please tell me way join 2 tables in 2 different databases.
use aliases this
select t1.name t1_name, t2.name t2_name db1.your_table t1 join db2.your_table t2 on t1.id = t2.id
Comments
Post a Comment