the situation is as following:
There are two servers in LAN: "server1" and "server2"
database "db1" is running on the SQL Server in "server1"
database "db2" is running on the SQL Server in "server2"
Table "t1" is in "db1"
Tbale "t2" is in "db2"
I wrote a trigger on "t1". When a row is inserted into "t1", the trigger is executed and a corresponding row is inserted into "t2"
How to write the code to create a linked server?
I have read the help information but I don't understand it well.
There are two servers in LAN: "server1" and "server2"
database "db1" is running on the SQL Server in "server1"
database "db2" is running on the SQL Server in "server2"
Table "t1" is in "db1"
Tbale "t2" is in "db2"
I wrote a trigger on "t1". When a row is inserted into "t1", the trigger is executed and a corresponding row is inserted into "t2"
How to write the code to create a linked server?
I have read the help information but I don't understand it well.